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

Self enrol "longtimenosee" prevent saving enrolment method if "notify before enrolment expires" is set to "no"

XMLWordPrintable

    • MOODLE_404_STABLE
    • MOODLE_404_STABLE
    • MDL-82643-404
    • Hide
      1. Log in as admin
      2. Create a new course
      3. Navigate to course enrolments
      4. Edit the Self enrolment instance_
        • Set Notification threshold to "0 | days"
        • Set Notify before enrolment expires to "No"
        • Set Unenrol inactive after "7 days"
      5. Press Save changes
      6. Confirm form is saved
      7. Edit the enrolment instance again
        • Set Notify before enrolment expires to "Teacher only"
      8. Press Save changes
      9. Confirm you see form validation failure: "Notification threshold must be at least 1 day."
      10. Set Notification threshold to "1 | days"
      11. Press Save changes
      12. Confirm form is saved
      Show
      Log in as admin Create a new course Navigate to course enrolments Edit the Self enrolment instance_ Set Notification threshold to "0 | days" Set Notify before enrolment expires to "No" Set Unenrol inactive after "7 days" Press Save changes Confirm form is saved Edit the enrolment instance again Set Notify before enrolment expires to "Teacher only" Press Save changes Confirm you see form validation failure: "Notification threshold must be at least 1 day." Set Notification threshold to "1 | days" Press Save changes Confirm form is saved

      The fix to inactivity notification implemented by MDL-46886 throw a form error when trying to save a self enrolment method with the following parameters

      • Notify before enrolment expires (expirynotify) -> No
      • Unenrol inactive after (customint2) -> Any other value than "never"

      The option "Notification threshold" (expirythreshold) will throw the error " Notification threshold must be at least 1 day. " even though we don't want to send notifications before enrolment expire.

      Current work around is to either sent notification or put the unenrol inactive to "never"

        1. Screenshot from 2024-07-30 16-22-08.png
          91 kB
          Benjamin-unige
        2. (1) 12 Passed -- (Main)MDL-82643.png
          69 kB
          Kim Jared Lucas
        3. (1) 9 Passed -- (Main)MDL-82643.png
          101 kB
          Kim Jared Lucas

            pholden Paul Holden
            benjamin-unige Benjamin-unige
            Benjamin-unige Benjamin-unige
            Huong Nguyen Huong Nguyen
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 24 minutes
                24m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.