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

Site plugins: PreSets are not updated when using a directive with samePage=true

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.8.0
    • Fix Version/s: 3.8.1
    • Component/s: Site add-ons
    • Labels:
    • Testing Instructions:
      Hide

      This issue only needs to be tested in 1 device.

      1. Install the plugin attached to this issue in a Moodle site, in the "local" folder.
      2. In the app, login in the site.
      3. Go to the "More" menu. Check you see an option called "Test MOBILE-3340".
      4. Click the "Test MOBILE-3340" option. Check you see a page with two buttons.
      5. Click the option "This page will be cached!". Check that the content changes to "This page will be cached!".
      6. Go back and click "Test MOBILE-3340".
      7. Now click "This page won't be cached!". Check that the content changes to "This page won't be cached!".
      8. Go back and go offline.
      9. Click "Test MOBILE-3340". Check that the page with 2 buttons loads fine.
      10. Click the option "This page will be cached!". Check that the content changes to "This page will be cached!".
      11. Go back and click "Test MOBILE-3340" again.
      12. Now click "This page won't be cached!". Check that you see an error saying you are offline.
      Show
      This issue only needs to be tested in 1 device. Install the plugin attached to this issue in a Moodle site, in the "local" folder. In the app, login in the site. Go to the "More" menu. Check you see an option called "Test MOBILE-3340 ". Click the "Test MOBILE-3340 " option. Check you see a page with two buttons. Click the option "This page will be cached!". Check that the content changes to "This page will be cached!". Go back and click "Test MOBILE-3340 ". Now click "This page won't be cached!". Check that the content changes to "This page won't be cached!". Go back and go offline. Click "Test MOBILE-3340 ". Check that the page with 2 buttons loads fine. Click the option "This page will be cached!". Check that the content changes to "This page will be cached!". Go back and click "Test MOBILE-3340 " again. Now click "This page won't be cached!". Check that you see an error saying you are offline.
    • Affected Branches:
      MOODLE_38_STABLE
    • Fixed Branches:
      MOODLE_38_STABLE
    • Sprint:
      Moodle App 3.8.1

      Description

      core-site-plugins-new-content and core-site-plugins-call-ws-new-content accept an input called "samePage" to load the new content in the same page. In this case we update the component, method, jsData and args, but not the preSets.

        Attachments

          Activity

            People

            Assignee:
            dpalou Dani Palou
            Reporter:
            dpalou Dani Palou
            Peer reviewer:
            Pau Ferrer Pau Ferrer
            Integrator:
            Juan Leyva Juan Leyva
            Tester:
            Isabel Renedo Rouco Isabel Renedo Rouco
            Participants:
            Component watchers:
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              25/Mar/20