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

It is not possible to uninstall conditional availability plugins

    XMLWordPrintable

Details

    • MOODLE_27_STABLE
    • MOODLE_27_STABLE
    • MDL-45501-master
    • Hide

      Setup
      #. Enable availability in site settings if required.

      1. install https://moodle.org/plugins/view.php?plugin=block_xp
      2. install https://moodle.org/plugins/view.php?plugin=availability_xp

      TEST

      1. In a course add "level up" block
      2. Create a new Page activity.
      3. Under 'Restrict access', set a level condition with level required as 1 and any date condition.
      4. Save and return to course.
        EXPECTED (as before): Both conditions are listed on the page while editing.
      5. Go to Site administration ► Plugins ► Plugins overview.
      6. Make sure there is an uninstall link against availability plugins.
      7. Uninstall the xp availability plugin
      8. Go back to the website and reload.
        EXPECTED: Only the date condition is shown on the page.
      9. Edit the activity settings and expand 'Restrict access'.
        EXPECTED: The xp condition shows as 'Missing restriction plugin' with a 'Please set' indicator.
      10. Save and return to course.
        EXPECTED: Form validation fails and the form reloads. A suitable error message appears by the 'Access restrictions' label.
      11. Click the X button next to the 'Missing restriction plugin' box.
      12. Save and return to course.
        EXPECTED: Saves successfully.
      Show
      Setup #. Enable availability in site settings if required. install https://moodle.org/plugins/view.php?plugin=block_xp install https://moodle.org/plugins/view.php?plugin=availability_xp TEST In a course add "level up" block Create a new Page activity. Under 'Restrict access', set a level condition with level required as 1 and any date condition. Save and return to course. EXPECTED (as before): Both conditions are listed on the page while editing. Go to Site administration ► Plugins ► Plugins overview. Make sure there is an uninstall link against availability plugins. Uninstall the xp availability plugin Go back to the website and reload. EXPECTED: Only the date condition is shown on the page. Edit the activity settings and expand 'Restrict access'. EXPECTED: The xp condition shows as 'Missing restriction plugin' with a 'Please set' indicator. Save and return to course. EXPECTED: Form validation fails and the form reloads. A suitable error message appears by the 'Access restrictions' label. Click the X button next to the 'Missing restriction plugin' box. Save and return to course. EXPECTED: Saves successfully.

    Description

      Conditional availability plugins cannot be uninstalled from Moodle using the Manage Plugins UI. If you install one from the plugins DB, there is no way to uninstall it.

      To reproduce install the level availability plugin (and it's dependency) (https://moodle.org/plugins/view.php?plugin=availability_xp) and then navigate to Site Administration > Plugins> plugin overview and there will not be an uninstall link.

      Attachments

        Issue Links

          Activity

            People

              ankit_frenz Ankit Agarwal
              sbourget Stephen Bourget
              Sam Marshall Sam Marshall
              Dan Poltawski Dan Poltawski
              Simey Lameze Simey Lameze
              Sam Marshall, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Sara Arjona (@sarjona), Matteo Scaramuccia, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                14/Jul/14