Laurent David
5708639d32
MDL-81267 mod_data: Additional tests
2024-04-17 10:33:35 +02:00
Laurent David
63ba5e591d
MDL-81267 mod_data: Clean field type before inclusion
...
* Filter out wrong field types when restoring or creating a field.
2024-04-17 10:33:35 +02:00
Huong Nguyen
a1eec364e5
Merge branch 'MDL-77015-402' of https://github.com/paulholden/moodle into MOODLE_402_STABLE
2024-04-12 11:46:25 +07:00
Andrew Nicols
aa93afad1a
Merge branch 'MDL-70829-402' of https://github.com/junpataleta/moodle into MOODLE_402_STABLE
2024-04-12 11:59:20 +08:00
Jun Pataleta
6a4307c700
MDL-70829 mod_data: Mark up decorative images properly
...
* Decorative images should have an empty alt text and there's no need
to set a presentation role.
* Accessibility Behat tests added to cover the changes
2024-04-12 11:17:05 +08:00
Paul Holden
83197cee22
MDL-81320 datafield_checkbox: account for empty field content.
2024-04-05 15:16:45 +01:00
Paul Holden
f2c3a62385
MDL-77015 mod_data: consistent escaping of template field names.
...
* When creating default templates, avoid escaping the field names
contained within [[ ]] brackets;
* When managing field, ensure the field names are escaped.
2024-04-02 10:02:14 +01:00
Laurent David
0a2120ab19
MDL-80765 mod_data: Trim values on field update
...
* When creating a field we usually trim values, so we should
do the same on field update
2024-04-02 05:41:45 +02:00
Sara Arjona
e41340c435
Merge branch 'MDL-80404-402' of https://github.com/andelacruz/moodle into MOODLE_402_STABLE
2024-02-21 13:23:36 +01:00
Angelia Dela Cruz
cb8c663829
MDL-80404 mod_data: Behat for url autolinking and opening in new window
2024-02-21 16:02:32 +08:00
Simey Lameze
080a06ebb7
MDL-80613 behat: convert manual completion steps to use generators
2024-02-15 11:01:23 +08:00
Paul Holden
0012117629
MDL-80499 datafield_date: specify UTC time when editing field content.
2024-01-10 19:23:13 +00:00
Sara Arjona
37b2c0aabc
Merge branch 'MDL-80286-402' of https://github.com/paulholden/moodle into MOODLE_402_STABLE
2023-12-05 16:42:19 +01:00
Jun Pataleta
933261722b
MDL-80131 mod_data: Make page titles unique
2023-12-02 07:20:45 +08:00
Paul Holden
328fe7ec6b
MDL-80286 datafield_date: cast field content to real when sorting.
...
This ensures we don't under/overflow the size of an integer in DB.
2023-11-30 10:05:10 +00:00
Stephan Robotta
f9a852881f
MDL-79604 mod_data: exception if mandatory checkox list is missing
2023-11-15 12:23:51 +01:00
Angelia Dela Cruz
b5d5825b3f
MDL-79768 fix: Fixed random failing Behat due to time difference
2023-10-26 18:02:08 +08:00
Angelia Dela Cruz
b3afaa0c54
MDL-79768 mod_data: Test for student can see upcoming data activity
2023-10-23 08:48:27 +08:00
Paul Holden
9ebc3f2fdc
MDL-78979 mod_data: correct restore decode rule for data view page.
2023-10-16 20:53:58 +01:00
Paul Holden
3cbd94ce8b
MDL-79633 mod_data: correct timemodified tag replacement attribute.
2023-10-09 19:41:10 +01:00
Jun Pataleta
3984cf9e42
MDL-79059 mod_data: Enclose preset options within a fieldset
...
Enclosing the radio buttons in a fieldset to provide additional context
to the purpose of the fields.
2023-08-26 10:40:24 +08:00
Jun Pataleta
6954a32400
MDL-79059 mod_data: Fix presets accessibility issues
...
* Add sr-only column headers for the select and actions columns.
* Define unique IDs for the preset name links using array indices.
* Label the radio buttons via aria-labelledby attribute pointing to
the ID of the preset's link.
2023-08-26 10:40:24 +08:00
Sara Arjona
fdf3daa6a9
MDL-78676 mod_data: Check completion rules properly
...
The completion_rule_enabled() method was not checking all the fields
and, in some cases, it was returning false (because it was not checking
that "Count of entries" field was enabled).
2023-07-07 18:28:29 +02:00
Angelia Dela Cruz
09792257fd
MDL-78158 behat: Behat cleanup and optimisation
2023-07-04 07:49:46 +08:00
Angelia Dela Cruz
82fdb9e20e
MDL-78158 Behat: Use data generators to add blocks
2023-07-03 18:59:19 +08:00
Amaia Anabitarte
aa85dad6c1
MDL-76715 mod_data: Remove data_records when the last field is deleted
2023-06-13 09:33:30 +02:00
Paul Holden
39a930f762
MDL-78149 mod_data: ensure group selector is always present.
2023-05-09 12:20:29 +01:00
Sara Arjona
fb14c67dec
Merge branch 'MDL-77791_402' of https://github.com/dvdcastro/moodle into MOODLE_402_STABLE
2023-05-02 12:03:53 +02:00
David Castro
9e0d12e5ae
MDL-77791 data: Fix file attachment to search doc
2023-04-25 19:56:26 -05:00
Jun Pataleta
e6615e587f
MDL-78000 upgrade: add the 4.2.0 separation line to all upgrade scripts
2023-04-24 13:22:41 +08:00
Eloy Lafuente (stronk7)
061c9d7ba0
MDL-77940 versions: bump all versions and requires near release
...
version = 2023042400 release version
requires= 2023041800 current rc1 version
2023-04-18 18:08:09 +02:00
Sara Arjona
9ce4fb65fd
Merge branch 'MDL-77164-master' of https://github.com/marinaglancy/moodle
2023-04-13 14:00:18 +02:00
Marina Glancy
8fc1486d36
MDL-77164 various: fix incorrect phpdocs
2023-04-13 11:35:06 +01:00
Marina Glancy
9ffbcce0ac
MDL-77164 various: fix mustache template name
2023-04-13 09:43:15 +01:00
Marina Glancy
04f8fdd021
MDL-77164 various: fix javascript AMD module name
2023-04-13 09:43:15 +01:00
Meirza
1f78fb2562
MDL-77348 mod_data: Added missing class properties
...
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-04-12 13:05:28 +07:00
Andrew Nicols
035d818dd3
MDL-76866 mod_data: Disable the HTML editor to insert partial HTML
...
This test is adding table rows into an HTML editor and, quite rightly,
is failing under TinyMCE.
This only worked under Atto because Atto does not perform any HTML
validation. A user would not actually be able to insert the template
content this way, and therefore the test is/was invalid.
This change disables the HTML editor before inserting the template
content, which resembles the actions of a real user.
2023-03-29 20:33:47 +08:00
Andrew Nicols
96fd7a83fb
MDL-76866 mod_data: Editors should have data-fieldtype attrib
2023-03-29 20:33:47 +08:00
Sara Arjona
6bcb807d15
Merge branch 'MDL-76360-master' of https://github.com/laurentdavid/moodle
2023-03-23 18:33:49 +01:00
Laurent David
76e3c30465
MDL-76360 mod_data: Field page layout improvement
...
* Unify the fields_action_bar and action_bar template
* Make sure the Create a field button is a primary button
* The fields_action_bar is very similar to the action_bar template so
should be used instead
2023-03-23 12:02:14 +01:00
Sara Arjona
2e334cf58c
Merge branch 'MDL-77523-master' of https://github.com/juancs/moodle
2023-03-21 15:46:27 +01:00
Sara Arjona
a15d363453
Merge branch 'MDL-77275-master' of https://github.com/laurentdavid/moodle
2023-03-17 13:03:31 +01:00
Juan Segarra Montesinos
844ca05c2e
MDL-77523 mod_data: textarea field should honor editor preferred format
2023-03-15 06:48:10 +01:00
Mark Johnson
8932fe55e5
MDL-68093 data: Add behat tests for groups
2023-03-14 08:52:26 +00:00
Laurent David
301c56ae1d
MDL-77275 mod_data: Template reset button changes
...
* Remove the reset button in the sticky footer (template page)
* Add the reset button action in the Action menu
2023-03-13 07:35:44 +01:00
Jun Pataleta
8441270181
Merge branch 'MDL-77559-master-2' of https://github.com/andrewnicols/moodle
2023-03-09 16:02:01 +08:00
Andrew Nicols
511401f4f6
MDL-77559 js: Rebuild all JS with Node 16
2023-03-09 09:53:19 +08:00
Andrew Nicols
974d7e4dab
Merge branch 'MDL-52805-42' of https://github.com/Chocolate-lightning/moodle
2023-03-08 14:49:59 +08:00
Paul Holden
355556c05f
MDL-77008 mod_data: require sesskey to reset module templates.
2023-03-08 00:54:14 +00:00
Mathew May
e5ca7766e7
MDL-52805 core: Remove legacy log calls
2023-03-07 13:08:46 +08:00