[AMOS commit] MDL-75142 mod_data: Add description to presets Committed into Git: 2022-07-19 15:47 UTC

[AMOS commit] MDL-75142 mod_data: Add description to presets Committed into Git: 2022-07-19 15:47 UTC

by AMOS bot -
Number of replies: 0
Author: Sara Arjona
MDL-75142 mod_data: Add description to presets
This commit adds support to description field for presets:
- For plugin presets, description will be stored in the module_help
string in lang files.
- For saved presets, a new element, <description>, has been added
to the preset.xml file, to include this information.

A new field has been added to the "Save as preset" modal, to let users
define description (which is empty by default, to support pre-existing
presets that won't have it).

Apart from that, the "Save as preset" workflow has been slightly improved,
following the Product UX/UX suggestions to hide the checkbox to overwrite
the preset by default and show it only if the user tries to save a preset
with an existing name.


http://git.moodle.org/gw?p=moodle.git;a=commit;h=aecb87f53eb07da3db6c0f7619a2594913171d02
http://github.com/moodle/moodle/commit/aecb87f53eb07da3db6c0f7619a2594913171d02

+ 4.1 en [errorpresetexists,mod_data]
+ 4.1 en [errorpresetexistsbutnotoverwrite,mod_data]
+ 4.1 en [overrwritedesc,mod_data]
+ 4.1 en [modulename_help,datapreset_imagegallery]