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

When deleting a module, related config variables must be deleted too

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.7.3, 1.8.3, 1.9
    • Fix Version/s: 1.9
    • Component/s: General, Installation
    • Labels:
      None
    • Environment:
      any
    • Affected Branches:
      MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      I've detected that, when one module is deleted completely, the config variables stored in the "config" table aren't deleted and this causes problems, for example, when trying to reinstall one module that has submodules (aka, the assignment module).

      Because of config records not being deleted, the submodules versions, named, for example, "assignment_type_online_version" aren't deleted so new installation doesn't happen.

      So, I'm going to add some line to admin/modules.php in order to delete all the "modulename_%" variables existing.

      Ciao

        Attachments

          Activity

            People

            Assignee:
            stronk7 Eloy Lafuente (stronk7)
            Reporter:
            stronk7 Eloy Lafuente (stronk7)
            Tester:
            Nobody
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan, Matteo Scaramuccia, Andrew Nicols, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              3/Mar/08