Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-71397

PHP 8.0: Glossary default category is wrong when viewing entries

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.11, 4.0
    • Fix Version/s: 3.11
    • Component/s: Glossary
    • Labels:

      Description

      Discovered in behat tests

      The same issue as MDL-71394 and MDL-70966

      During string comparison empty string is not the same as 0

      --- Failed steps:
       
      001 Scenario: Glossary entries can be organised in categories and categories can be autolinked # /var/www/html/mod/glossary/tests/behat/categories.feature:8
            And I should see "EntryNoCategory"                                                       # /var/www/html/mod/glossary/tests/behat/categories.feature:89
              "EntryNoCategory" text was not found in the page (Behat\Mink\Exception\ExpectationException)
       
      1 scenario (1 failed)
      

        Attachments

          Activity

            People

            Assignee:
            marina Marina Glancy
            Reporter:
            marina Marina Glancy
            Peer reviewer:
            Paul Holden Paul Holden
            Integrator:
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Tester:
            CiBoT CiBoT
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              17/May/21

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 25 minutes
                1h 25m