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

Plugin init "restrict" is not updated if new courses are added

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 3.7.0
    • Fix Version/s: 3.7.1
    • Component/s: Remote addons
    • Labels:
    • Testing Instructions:
      Hide

      This issue only needs to be tested in 1 device.

      1. Install the plugin attached to this issue, in the local folder.
      2. In the app, login in that site and open a course. Check that you see an option at the top named "My awesome plugin".
      3. In web, enrol the user in a new course.
      4. In the app, go back to the dashboard and perform a PTR.
      5. Open the course you were enroled in step 3. Check that you see an option at the top named "My awesome plugin".
      Show
      This issue only needs to be tested in 1 device. Install the plugin attached to this issue, in the local folder. In the app, login in that site and open a course. Check that you see an option at the top named "My awesome plugin". In web, enrol the user in a new course. In the app, go back to the dashboard and perform a PTR. Open the course you were enroled in step 3. Check that you see an option at the top named "My awesome plugin".
    • Affected Branches:
      MOODLE_37_STABLE
    • Fixed Branches:
      MOODLE_37_STABLE
    • Sprint:
      Moodle App 3.7.1

      Description

      Plugins can return a "restrict" array from their init function containing a list of courses on which they should display.  This is only run when the app launches.  If a user is enrolled on a new course after the app has loaded, they can pull to refresh on the dashboard page to see and access the new course. However, the plugin init functions are not re-run, so even if a restricted plugin should show on this new course, it won't.  The only way to enable it is to restart the app, but there is nothing to tell the user to do this, so they will be missing content without knowing.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                30/Aug/19