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

"disabledif" function doesn't work in "repeat_elements" function if the condition is a repeat element

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9.3, 2.0
    • 1.9.5
    • Forms Library
    • None
    • MySQL
    • MOODLE_19_STABLE, MOODLE_20_STABLE
    • MOODLE_19_STABLE

    Description

      All is in the title.

      To correct this problem, i modify the "repeat_elements" function.
      When the function clone the differents elements, i copy all of them in an array.
      When the function applies the differents options for the cloned elements, in the case of a 'disabledif' option, i compare the name of the conditon of the element with the array. If it's in it, i change the name of the condition with the nice bracket [no].

      It seems to work fine.

      Attachments

        1. formslib.php.patch
          2 kB
        2. screenshot-1.jpg
          screenshot-1.jpg
          109 kB
        3. screenshot-2.jpg
          screenshot-2.jpg
          110 kB
        4. screenshot-3.jpg
          screenshot-3.jpg
          130 kB
        5. screenshot-4.jpg
          screenshot-4.jpg
          124 kB

        Issue Links

          Activity

            People

              timhunt Tim Hunt
              matteli Matthieu Nué
              Sam Hemelryk Sam Hemelryk
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                13/May/09