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

bug: cached views don't update their $stateParams when being reused

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.2
    • Fix Version/s: None
    • Component/s: AngularJS, Ionic
    • Labels:
    • Affected Branches:
      MOODLE_32_STABLE

      Description

      Hi!! I found out that the $stateParams don't get synchronized with the views while using $ionicHistory (cached views).
      Specifically, in the line file 302 of file https://github.com/moodlehq/moodlemobile2/blob/master/www/core/components/fileuploader/services/helper.js the var upload is always undefined because doesn't get the correct $stateParams.

      Fortunatelly, I discovered this fix, but I don't know how to insert it in the app:

      https://gist.github.com/thiagofelix/3c16e9cae0e03eebd351

      Anyone can help?

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: