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

radiobutton other clause is broken.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.3
    • Fix Version/s: 1.9.12, 2.0, 2.1
    • Component/s: Module: Questionnaire
    • Labels:
      None
    • Workaround:
      Hide

      patch as:
      diff /mod/questionnaire/locallib.php questionnaire/locallib.php
      1107c1107
      < $pos = strpos($resp, 'other=');

      > $pos = strpos($resp, 'other_');
      1124c1124
      < $pos = strpos($resp, 'other=');

      > $pos = strpos($resp, 'other_');
      3067c3067

      Show
      patch as: diff /mod/questionnaire/locallib.php questionnaire/locallib.php 1107c1107 < $pos = strpos($resp, 'other='); — > $pos = strpos($resp, 'other_'); 1124c1124 < $pos = strpos($resp, 'other='); — > $pos = strpos($resp, 'other_'); 3067c3067
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE, MOODLE_21_STABLE

      Description

      checkbox in questionaire on moodle 2

      If other and all are ticked, to many entries.
      If other only then error. Think is typo as below. seems to work with these patches.

      diff mod/questionnaire/locallib.php questionnaire/locallib.php
      1107c1107
      < $pos = strpos($resp, 'other=');

      > $pos = strpos($resp, 'other_');
      1124c1124
      < $pos = strpos($resp, 'other=');

      > $pos = strpos($resp, 'other_');
      3067c3067

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  24/Nov/10