Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-3033

Some site plugins can use the same name to store the data

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 3.6.1
    • Fix Version/s: 3.7.0
    • Component/s: Site add-ons
    • Labels:
    • Testing Instructions:
      Hide

      This issue only needs to be tested in 1 device.

      1. Install the course format attached to this issue.
      2. Create a course using this format.
      3. Enrol a student in this course.
      4. In the app, login as a student and open the course. Check that no error is displayed and you see the message "This is a course in Topics 2 format!".

       

      Show
      This issue only needs to be tested in 1 device. Install the course format attached to this issue. Create a course using this format. Enrol a student in this course. In the app, login as a student and open the course. Check that no error is displayed and you see the message "This is a course in Topics 2 format!".  
    • Affected Branches:
      MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_37_STABLE
    • Sprint:
      Moodle App 3.7.0

      Description

      In some cases we use the component name to store a site plugin data. E.g. in course format site plugins we use the format name, and in module plugins we use the module name. This can cause conflicts, e.g. format_myplugin and mod_myplugin will use the same name (myplugin) and so one of them will override the other one's data.

      We should always use the approach done by Sam Marshall in MOBILE-2935: return the unique name and use the delegate to retrieve the unique name based on the plugin name.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                7/Jun/19