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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 3.7.1
    • 3.7.0
    • Remote addons
    • 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".
    • MOODLE_37_STABLE
    • MOODLE_37_STABLE
    • Moodle App 3.7.1

      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.

            dpalou Dani Palou
            marxjohnson Mark Johnson
            Mark Johnson Mark Johnson
            Juan Leyva Juan Leyva
            Albert Gasset Albert Gasset
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.