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

Survey title field appears to be mandatory but is not marked as such

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.3
    • Fix Version/s: 2.0.7, 2.1.4
    • Component/s: Module: Questionnaire
    • Labels:
      None
    • Affected Branches:
      MOODLE_21_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE

      Description

      The 'Title' field in the 'Advanced settings' tab appears to be mandatory, as if it is empty you get the following error when saving:

      Invalid get_string() identifier: 'errrequiredfields' or component 'questionnaire'

      line 6003 of /lib/moodlelib.php: call to debugging()
      line 6593 of /lib/moodlelib.php: call to core_string_manager->get_string()
      line 945 of /mod/questionnaire/locallib.php: call to get_string()
      line 80 of /mod/questionnaire/qsettings.php: call to questionnaire->survey_update()

      Error

      Could not create a new survey!

      More information about this error Stack trace:

      line 429 of /lib/setuplib.php: moodle_exception thrown line 81 of /mod/questionnaire/qsettings.php: call to print_error()

      Probably shouldn't let you save without a title and should have the asterisk next to the 'Title' field.

      Hopefully a trivial fix?

        Attachments

          Activity

            People

            Assignee:
            mchurch Mike Churchward
            Reporter:
            jenny-gray Jenny Gray
            Participants:
            Component watchers:
            Mike Churchward
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              9/Jan/12