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

Review all usage of "checkbox" element and replace with "advcheckbox" if required

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_24_STABLE

      Description

      Quoting from this docs http://docs.moodle.org/dev/lib/formslib.php_Form_Definition#checkbox :-
      BEWARE: Unchecked checkboxes return nothing at all (as if they didn't exist). This can surprise the unwary. You may wish to use advcheckbox instead, which does return a value when not checked. 'Advcheckbox' eliminates this problem.

      This led to the issue MDL-36511 .

      I am creating this issue to make a review of all 'checkbox' usage and make sure it is not happening anywhere else.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ankit_frenz Ankit Agarwal
                Participants:
                Component watchers:
                Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: