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

Availability conditions do not support admin settings.

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      • Install a 3rd-party availability plugin that includes global settings - the rest of the test instructions will assume: https://moodle.org/plugins/availability_password
      • Check that the settings appear at the end of the installation: 'remember password entered'
      • Check the settings page appears as expected in the admin tree: site admin > plugins > availability restrictions > restriction by password
      • Change one of the settings + save: remember password => until the user logs out
      • Navigate away from the page
      • Return to the settings page and check the setting has been retained
      • Change the setting again + save: remember password => permanently
      • Navigate away and back again
      • Check the setting has again been saved
      • Check that only availability plugins with global settings have settings pages added (i.e. 'Restriction by activity completion', 'Restriction by date', etc. do not appear as pages under 'Availability restrictions')
      Show
      Install a 3rd-party availability plugin that includes global settings - the rest of the test instructions will assume: https://moodle.org/plugins/availability_password Check that the settings appear at the end of the installation: 'remember password entered' Check the settings page appears as expected in the admin tree: site admin > plugins > availability restrictions > restriction by password Change one of the settings + save: remember password => until the user logs out Navigate away from the page Return to the settings page and check the setting has been retained Change the setting again + save: remember password => permanently Navigate away and back again Check the setting has again been saved Check that only availability plugins with global settings have settings pages added (i.e. 'Restriction by activity completion', 'Restriction by date', etc. do not appear as pages under 'Availability restrictions')
    • Affected Branches:
      MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_29_STABLE, MOODLE_30_STABLE
    • Pull Master Branch:
      MDL-49620_availability_settings

      Description

      core\plugininfo\availability doesn't implement the core\plugininfo\base::load_settings() method. Consequently availability plugins cannot use admin settings.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/Mar/16