Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-4245

Notice: Undefined variable: resid

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.4
    • 2.4
    • Module: Questionnaire
    • None
    • MOODLE_24_STABLE
    • MOODLE_24_STABLE

      Create a Check boxes question with one !other possible answer.
      Take questionnaire and, on that question page, tick the !other choice but leave the box/field empty. then click Next page or Submit.
      You get the expected questionnaire warning messages:
      There is something wrong with question: #1.
      and
      If you tick this choice you must enter some text in the text box!
      But - if DEBUG mode is ON - you also get a PHP Notice:
      Notice: Undefined variable: resid in moodle\mod\questionnaire\questiontypes\questiontypes.class.php on line 361.

      Very easy fix : in questiontypes.class.php at the beginning of function insert_resp_multiple($rid), line 320 add: $resid = '';

            rezeau Joseph Rézeau
            rezeau Joseph Rézeau
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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