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

Undefined ANSWER_REGEX and ANSWER_REGEX_ANSWER_TYPE_MULTICHOICE constants

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 3.0.1
    • 3.0
    • Questions

      I've upgraded a monster database to 3.0 and I see some php notices in the CLI output:

      Notice: Use of undefined constant ANSWER_REGEX - assumed 'ANSWER_REGEX' in /home/davidm/Desktop/moodlecode/int/MOODLE_30_STABLE/question/type/multianswer/db/upgrade.php on line 85
       
      Notice: Use of undefined constant ANSWER_REGEX_ANSWER_TYPE_MULTICHOICE - assumed 'ANSWER_REGEX_ANSWER_TYPE_MULTICHOICE' in /home/davidm/Desktop/moodlecode/int/MOODLE_30_STABLE/question/type/multianswer/db/upgrade.php on line 86
      

      This is probably a regression caused by MDL-52162, as I removed question/type/multianswer/questiontype.php include there.

      Would be good to fix this before releasing 3.0.1.

            dmonllao David Monllaó
            dmonllao David Monllaó
            Frédéric Massart Frédéric Massart
            Dan Poltawski Dan Poltawski
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.