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

Database: Only one offline action is stored for each entry

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 3.7.0
    • 3.6.0
    • Database add-on
    • Hide

      Test on Android, iOS and Desktop/Web on any Moodle version.

      Setup

      1. Create a database activity with setting "Approval required" enabled.
      2. Add an input text field to the database.

      Test: Migration

      1. Access the app with and older version (without this fix).
      2. Go to the database activity.
      3. Switch to offline.
      4. Add some entries to the database.
      5. Update the app to the integration branch (or the version including this fix).
      6. Still offline, open the app and go to the database activity.
      7. Check that the entries created previously are displayed.
      8. Switch to online and pull to refresh.
      9. Check that the entries are created in Moodle.

      Test: Multiple actions

      1. Access the app as a student (don't use an older version of the app).
      2. Add a new entry to the database with text "A".
      3. Access the app as a teacher and go to the database.
      4. Switch to offline.
      5. Edit the database entry and change the text to "B".
      6. Approve the entry.
      7. Check that the entry is now approved and the text is "B".
      8. Switch to online and pull to refresh.
      9. Check that the entry is updated in Moodle: text is "B" and it's approved.
      Show
      Test on Android, iOS and Desktop/Web on any Moodle version. Setup Create a database activity with setting "Approval required" enabled. Add an input text field to the database. Test: Migration Access the app with and older version (without this fix). Go to the database activity. Switch to offline. Add some entries to the database. Update the app to the integration branch (or the version including this fix). Still offline, open the app and go to the database activity. Check that the entries created previously are displayed. Switch to online and pull to refresh. Check that the entries are created in Moodle. Test: Multiple actions Access the app as a student (don't use an older version of the app). Add a new entry to the database with text "A". Access the app as a teacher and go to the database. Switch to offline. Edit the database entry and change the text to "B". Approve the entry. Check that the entry is now approved and the text is "B". Switch to online and pull to refresh. Check that the entry is updated in Moodle: text is "B" and it's approved.
    • MOODLE_36_STABLE
    • MOODLE_37_STABLE
    • Moodle Mobile 3.6.1

    Description

      Steps to reproduce:

      1. In web, create a database activity:
        • Enable "Approval required" in the database settings.
        • Add a text field.
      2. Access the app as a student
      3. Add a new entry to the database with text "A".
      4. Access the app as a teacher and go to the database.
      5. Switch to offline.
      6. Edit the database entry and change the text to "B".
      7. Approve the entry.
      8. See that the entry is now approved bu the text is changed back to "A".

      Attachments

        Activity

          People

            albert.gasset Albert Gasset
            albert.gasset Albert Gasset
            Dani Palou Dani Palou
            Juan Leyva Juan Leyva
            Isabel Renedo Rouco Isabel Renedo Rouco
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Clockify

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