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

Optional TimeDate fields always reposting as disabled

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0
    • 2.0
    • Forms Library
    • None
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE

    Description

      There appears to be a typo in the file lib/form/datetimeselector.php:

      line 179 :
      $value['enabled'] = isset($value['off']);

      That should be:
      $value['enabled'] = isset($value['enabled']);

      Otherwise when a form is redisplayed with post data, an optional timedate field always comes up disabled.

      Attachments

        Activity

          People

            timhunt Tim Hunt
            mpetrowi Matt Petro
            Nobody Nobody
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              24/Nov/10