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

html_writer::select should accept 'disabled' => true/false, as well as 'disabled' => 'disabled'

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.1
    • 2.0.2
    • Libraries
    • None
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE

    Description

      In Moodle 1.9, you could pass $disabled = true to choose from menu (or, more significantly $disabled =

      {some boolean expression}

      ).

      That does not currently work with the Moodle 2.0 equivalent: html_writer::select.

      This patch fixes that.

      Attachments

        Activity

          People

            timhunt Tim Hunt
            timhunt Tim Hunt
            David Mudrák (@mudrd8mz) David Mudrák (@mudrd8mz)
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              21/Feb/11