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

Forum: Refresh when request failed throws an error

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2
    • 2.2
    • Forum add-on
    • 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.
    • MOODLE_22_STABLE
    • 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

              dpalou Dani Palou
              dpalou Dani Palou
              Frédéric Massart Frédéric Massart
              Juan Leyva Juan Leyva
              Juan Leyva Juan Leyva
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                10/Sep/15