Details

      Description

      1. Login as a teacher, update a database activity and click the presets tab.
      2. Export the database preset as a zip file.
      3. Save the preset.
      4. In a different course, create a database activity and import the preset zip file.
      5. Check that the preset has imported correctly and that the new database activity is identical to the original.
      6. In a different course, create a database activity and select the previously saved preset to import.
      7. Check that the preset has imported correctly and that the new database activity is identical to the original.

        Gliffy Diagrams

          Issue Links

            Activity

            Hide
            professorb Ashley Blakeston added a comment -

            Whenever trying to select a preset I get a message saying var/www/moodle2/mod/data/preset/Test Database is not a preset or whatever the name of the preset (tried a couple of times with different names). Creating bug report now.

            Show
            professorb Ashley Blakeston added a comment - Whenever trying to select a preset I get a message saying var/www/moodle2/mod/data/preset/Test Database is not a preset or whatever the name of the preset (tried a couple of times with different names). Creating bug report now.
            Hide
            andyjdavis Andrew Davis added a comment -

            HI Ashley. I've committed a fix for that bug. Update and give it another go

            You'll need to re-export your preset database activity as the problem was with the export code.

            Show
            andyjdavis Andrew Davis added a comment - HI Ashley. I've committed a fix for that bug. Update and give it another go You'll need to re-export your preset database activity as the problem was with the export code.
            Hide
            andyjdavis Andrew Davis added a comment -

            MDL-24349 has been reopened. I'll fix the issues then reset this test.

            Show
            andyjdavis Andrew Davis added a comment - MDL-24349 has been reopened. I'll fix the issues then reset this test.
            Hide
            colchambers Colin Chambers added a comment - - edited

            Export and import of presets worked fine. Saved the presets but couldn't use the saved preset.

            Got the error
            /html/mod/data/preset/A database of web links is not a preset.

            More information about this error

            Stack trace:
            line 379 of /lib/setuplib.php: moodle_exception thrown
            line 2068 of /mod/data/lib.php: call to print_error()
            line 16 of /mod/data/renderer.php: call to data_preset_importer->get_preset_settings()
            line 107 of /mod/data/preset.php: call to mod_data_renderer->import_setting_mappings()

            The pre existing image gallery preset did work. So only those I created myself didn't work.

            Filed bug http://tracker.moodle.org/browse/MDL-24619

            I assume that only the presets are exported. When importing to a new course, only the field setup details were imported. The values in the fields weren't. Iassume this is correct behaviour since this is about setting up presets not transferring data. Just noting incase I'm wrong.

            Show
            colchambers Colin Chambers added a comment - - edited Export and import of presets worked fine. Saved the presets but couldn't use the saved preset. Got the error /html/mod/data/preset/A database of web links is not a preset. More information about this error Stack trace: line 379 of /lib/setuplib.php: moodle_exception thrown line 2068 of /mod/data/lib.php: call to print_error() line 16 of /mod/data/renderer.php: call to data_preset_importer->get_preset_settings() line 107 of /mod/data/preset.php: call to mod_data_renderer->import_setting_mappings() The pre existing image gallery preset did work. So only those I created myself didn't work. Filed bug http://tracker.moodle.org/browse/MDL-24619 I assume that only the presets are exported. When importing to a new course, only the field setup details were imported. The values in the fields weren't. Iassume this is correct behaviour since this is about setting up presets not transferring data. Just noting incase I'm wrong.

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: