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

Max Length of Question name not set

XMLWordPrintable

    • Hide

      fix: change

      $mform->addElement('text', 'name', get_string('optionalname', 'questionnaire'), array('size'=>'25'));

      to

      $mform->addElement('text', 'name', get_string('optionalname', 'questionnaire'), array('size'=>'30', 'maxlength'=>'30'));

      Show
      fix: change $mform->addElement('text', 'name', get_string('optionalname', 'questionnaire'), array('size'=>'25')); to $mform->addElement('text', 'name', get_string('optionalname', 'questionnaire'), array('size'=>'30', 'maxlength'=>'30'));
    • MOODLE_19_STABLE, MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
    • MOODLE_19_STABLE, MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE

      questionnaire_question table field name Type is varchar(30) but maxlength of that field is not set in questions_form.php which results in error writing to database if user enters a question name string > 30

      see http://moodle.org/mod/forum/discuss.php?d=188770

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

              Created:
              Updated:
              Resolved:

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