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

Undefined property when adding a glossary entry

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.5.4, 2.6.1
    • Component/s: Glossary
    • Labels:

      Description

      Problem detected by Dan, as there is a redirection is only visible when reading the web server logs, you can now reproduce it using behat with MDL-42733 integrated:

      (::) failed steps (::)
       
      01. PHP debug message/s found:
          
          Notice: Undefined property: stdClass::$aliases in /home/davidm/Desktop/moodlecode/INTEGRATION/master/mod/glossary/edit.php on line 94
          In step `When I add a glossary entry with the following data:'.                                # behat_mod_glossary::i_add_a_glossary_entry_with_the_following_data()
          From scenario `Printer-friendly glossary view disabled'.                                       # /home/davidm/Desktop/moodlecode/INTEGRATION/master/mod/glossary/tests/behat/print_friendly_version.feature:41
          Of feature `A teacher can choose whether to provide a printer-friendly glossary entries list'. # /home/davidm/Desktop/moodlecode/INTEGRATION/master/mod/glossary/tests/behat/print_friendly_version.feature
      

      Probably the problem is the same in 2.5.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              marina Marina Glancy
              Reporter:
              dmonllao David Monllaó
              Peer reviewer:
              David Monllaó
              Integrator:
              Dan Poltawski
              Tester:
              Dan Poltawski
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/Jan/14