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

Some small bugs in the database addon

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.6.0
    • 3.5.2
    • Database add-on
    • Hide

      Needed: a database activity with all types of fields except date.

      Bug 1

      1. Add an entry and select all the options of the checkbox and multimenu fields.
      2. Save the new entry.
      3. Check that all the options of the checkbox and multimenu fields are listed.

      Bug 2

      1. Add an entry with all the fields set to some non-empty value.
      2. Save the new entry and edit it again.
      3. #Set all the fields to empty and save the changes.
      4. Check that the fields of the entry are now blank.

      Bug 3 and 4

      1. Add an entry with some image in the picture field.
      2. Delete the picture and upload a different one.
      3. #Save the entry.
      4. Check the new image is displayed.

      Bug 5

      1. In web, set the textarea field as required.
      2. In the app, add a new entry (or edit an existing one).
      3. Switch to the rich text editor if it's disabled.
      4. Remove the content of the textarea (if it has any).
      5. Save the entry.
      6. Check that the form is still displayed and below the textarea an error is displayed saying the field is required.

      Bug 6

      1. Add an entry with "https://moodle.org" in the URL field.
      2. Save the entry.
      3. Check that the URL is displayed as a link with text "https://moodle.org" .

      Bug 7

      1. Add a new entry and leave the number field empty.
      2. Save the changes and edit the added entry.
      3. Without changing any field, click the app back button to leave the form.
      4. Check that the app navigates to the list of entries, no modal is displayed asking for confirmation.
      Show
      Needed: a database activity with all types of fields except date. Bug 1 Add an entry and select all the options of the checkbox and multimenu fields. Save the new entry. Check that all the options of the checkbox and multimenu fields are listed. Bug 2 Add an entry with all the fields set to some non-empty value. Save the new entry and edit it again. #Set all the fields to empty and save the changes. Check that the fields of the entry are now blank. Bug 3 and 4 Add an entry with some image in the picture field. Delete the picture and upload a different one. #Save the entry. Check the new image is displayed. Bug 5 In web, set the textarea field as required. In the app, add a new entry (or edit an existing one). Switch to the rich text editor if it's disabled. Remove the content of the textarea (if it has any). Save the entry. Check that the form is still displayed and below the textarea an error is displayed saying the field is required. Bug 6 Add an entry with "https://moodle.org" in the URL field. Save the entry. Check that the URL is displayed as a link with text "https://moodle.org" . Bug 7 Add a new entry and leave the number field empty. Save the changes and edit the added entry. Without changing any field, click the app back button to leave the form. Check that the app navigates to the list of entries, no modal is displayed asking for confirmation.
    • MOODLE_35_STABLE
    • MOODLE_36_STABLE
    • Moodle Mobile 3.6.0

      While working on MOBILE-2670 I've found some bugs in the database addon. I've collected all of them on this issue because they are small and I've fixed them at once.

      1. In checkbox and multimenu fields, selected options are not saved except the last one of the list (if it's selected).
      2. Fields cannot be set to an empty value when updating entries (previous value are preserved).
      3. When updating a picture field, the old image is kept (you need to delete the image, save the entry, edit the entry again and upload the new image).
      4. The image of a picture field is displayed broken after updating it.
      5. A required textarea field can be saved with no content using the rich text editor.
      6. URL fields are displayed with the name of the field instead of the URL.
      7. Number fields are always detected as changed, so leaving the form always asks for confirmation even when no change was made.

            albert.gasset Albert Gasset
            albert.gasset Albert Gasset
            Pau Ferrer Pau Ferrer
            Berta Maroto Berta Maroto
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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