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

Forum: Refresh when request failed throws an error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.2
    • Component/s: Forum add-on
    • Labels:
    • Testing Instructions:
      Hide
      1. Install the app on a device.
      2. Go offline and open a forum not cached. After the connection error is shown, do a pull to refresh and check that the same connection error is shown. Check that the unexpected error modal is not shown.
      3. Do the same for choices.
      4. Open a mod_resource, do a pull to refresh and check that the loading disappears when the refresh is finished.
      Show
      Install the app on a device. Go offline and open a forum not cached. After the connection error is shown, do a pull to refresh and check that the same connection error is shown. Check that the unexpected error modal is not shown. Do the same for choices. Open a mod_resource, do a pull to refresh and check that the loading disappears when the refresh is finished.
    • Affected Branches:
      MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE

      Description

      We received this error report:

      Cannot read property 'id' of undefined
      File: file:///android_asset/www/build/mm.bundle.js
      Line: 10165

      This issue happens when the user opens a forum, it fails to load and then performs a pull to refresh. Since we haven't been able to retrieve the forum, using forum.id throws an error. The same happens with choices.

      I also noticed that, in mod_resource, the loading in pull to refresh is shown forever.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dpalou Dani Palou
              Reporter:
              dpalou Dani Palou
              Peer reviewer:
              Frédéric Massart
              Integrator:
              Juan Leyva
              Tester:
              Juan Leyva
              Participants:
              Component watchers:
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Sep/15