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

Restrict access: Validation prevents saving a change to show/hide when criteria = is empty

    XMLWordPrintable

    Details

      Description

      Steps:
      Add Restrict access to an activity with the following conditions.
      Student must match the following conditions:
      User profile field First name is empty (value field is left blank)
      Click Save and return to course
      Edit activity
      Toggle the eye to shut
      Click Save and return to course

      Expected: Change is saved
      Actual: Validation returns "Error you must type a value" and request is not sent to server.

      A value should not be necessary for "is empty" and "is not empty".
      Note: a work-around exists if you change the method of comparison drop-down to e.g. "is equal to" and then back to "is empty" the error does not occur.

        Attachments

          Activity

            People

            Assignee:
            marina Marina Glancy
            Reporter:
            noisyjerm Jeremy FitzPatrick
            Peer reviewer:
            Sam Marshall
            Integrator:
            Damyon Wiese
            Tester:
            Jetha Chan
            Participants:
            Component watchers:
            Sam Marshall, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              10/Nov/14