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
Helen Foster
2e99dd6346
MDL-77416 lang: Import fixed English strings (en_fix)
2023-03-03 14:02:06 +00:00
Jun Pataleta
916503658d
Merge branch 'MDL-75012-master-5' of https://github.com/andrewnicols/moodle
2023-03-02 12:34:34 +08:00
Andrew Nicols
33b1e41f13
MDL-75012 js: Full build of all grunt things
2023-03-02 11:55:32 +08:00
Sara Arjona
529faa9eaa
MDL-77276 mod_data: Update reset single template string
...
When a single template is reset, the string displayed in the modal should
not reference to "all templates" to avoid confusion, as it was shown in the
original prototype for the 4.1 database project.
2023-02-24 11:21:49 +01:00
Andrew Nicols
2de031b74c
Merge branch 'MDL-76066-master' of https://github.com/aanabit/moodle
2023-02-09 10:27:00 +08:00
Andrew Nicols
c9956b2c94
Merge branch 'MDL-77177' of https://github.com/paulholden/moodle
2023-02-09 07:11:32 +08:00
Paul Holden
a09dc53828
MDL-77177 mod_data: re-factor internal method argument order.
...
We cannot have required method parameters after optional, it doesn't
make sense. Also it causes deprecation notices in PHP8.1.
2023-02-08 09:57:52 +00:00
Andrew Nicols
e5c8a01996
Merge branch 'MDL-77042' of https://github.com/paulholden/moodle
2023-02-06 21:15:16 +08:00
Andrew Nicols
2f2c587552
Merge branch 'MDL-77100' of https://github.com/paulholden/moodle
2023-02-02 08:30:02 +08:00
Paul Holden
0f58d46b05
MDL-77100 mod_data: replace calls to str_ends_with, fix assertions.
...
Calls to `str_ends_with` are polyfilled currently, as the method is
not present in PHP7.4 or earlier. We should avoid uses of it so as
to not trip up compatibility standard checkers.
2023-01-31 21:35:33 +00:00
Andrew Nicols
1f4794341b
Merge branch 'MDL-75498-master' of https://github.com/ferranrecio/moodle
2023-01-31 15:13:33 +08:00
Ferran Recio
cde3565a67
MDL-75498 mod_data: add new tags to presets
2023-01-30 12:01:22 +01:00
Ferran Recio
0213df2f03
MDL-75498 mod_data: add extra tags to templates
2023-01-30 12:01:20 +01:00
Amaia Anabitarte
a58ea07a41
MDL-76357 theme: Make sticky footer more prominent
2023-01-26 13:11:18 +01:00
Paul Holden
723b01e416
MDL-77042 mod_data: fix empty/zero equality check for numeric field.
2023-01-25 16:57:58 +00:00
Sara Arjona
ae53d04144
Merge branch 'MDL-75337-master' of https://github.com/laurentdavid/moodle
2023-01-24 16:07:35 +01:00
Laurent David
9686196e91
MDL-75337 mod_data: Single button - mod_data changes
...
* Update mod_data module to use the new button style
2023-01-24 06:01:35 +01:00
Laurent David
fc72a1d7b1
MDL-75337 core: Single button - core changes
...
* Change all core calls toward single_button to use single_button::BUTTON_PRIMARY
when needed
2023-01-24 06:01:35 +01:00
Amaia Anabitarte
d4e66f1df5
MDL-76066 mod_data: Trigger field_deleted event when importing
2023-01-23 18:53:44 +01:00
Marina Glancy
b0a83aa7bd
MDL-76362 various: Avoid passing nulls to functions that don't allow nulls
...
PHP 8.1 is more strict on the parameter type. Functions such as trim(), strlen(), str_replace(), etc
show notice when null is passed as an argument
2023-01-23 09:15:54 +08:00
Jun Pataleta
fad05d7929
Merge branch 'MDL-76583-master-withoutrename' of https://github.com/andrewnicols/moodle
2023-01-19 09:44:48 +08:00
Andrew Nicols
a3cc26f8bb
MDL-76583 core: Update uses of external_* classes
2023-01-19 07:34:09 +08:00
Jun Pataleta
0f1a005017
Merge branch 'MDL-76525-master' of https://github.com/PhMemmel/moodle
2023-01-18 22:56:09 +08:00
Philipp Memmel
4f4fbea9c3
MDL-76525 mod_data: Add param validation for data fields
2023-01-18 12:09:07 +01:00
Jun Pataleta
aedbfba858
Merge branch 'MDL-76358-master' of https://github.com/laurentdavid/moodle
2023-01-16 09:32:56 +08:00
Jun Pataleta
25ff4c441b
MDL-76739 mod_data: Split comments test into two
...
MDL-75596 added an "Insert an activity or resource before ..." button
that allows adding an activity or a resource before or after another
activity in a course. This renders the button in the DOM (although
hidden and shown only on mouseover) when there's at least one activity
in the course.
In this issue, the button's label was renamed to "Add an activity or
resource before ..." and it now obscures the normal "Add an activity or
resource" button at the bottom of the course section from being
interacted on when running Behat tests.
This failure happens in the create_activity.feature file as it creates
two DB activities in a single scenario – one when "usecomments" is
turned on and one when it's turned off. Given this limitation, a
workaround is to split the "Teacher cannot enable comments if they are
disabled at site level" scenario into two scenarios with the first one
testing when "usecomments" is on while the second scenario testing when
"usecomments" is turned off.
2023-01-12 17:05:55 +08:00
Laurent David
e4a1d891fc
MDL-76358 mod_data: Refactor preset output
...
* Remove unused manager in the presets.php
* Use single quote instead of double quote for array keys
2023-01-12 08:24:45 +01:00
Andrew Nicols
f516200459
Merge branch 'MDL-76839' of https://github.com/paulholden/moodle
2023-01-12 10:56:33 +08:00
Laurent David
45317d6db5
MDL-76358 mod_data: Add options to preset menu
...
* Add "Preview" and "Use this preset" menus to the preset plugin page's
burger menu
* Refactor importmapping dialogue to use the 'data-action' selector
* Add a new set_kebab_trigger action menu method
* Use set_additional_classes method for action menu
* Remove redundant parameter to add_action_menu
2023-01-11 10:59:04 +01:00
Paul Holden
1bf87e87a4
MDL-76839 mod_data: correct external test class coverage notation.
2023-01-10 12:59:06 +00:00
Andrew Nicols
35eb66d9dc
MDL-76811 mod_data: Remove duplicate tests
2023-01-10 11:39:40 +08:00
Andrew Nicols
cec147f428
MDL-76811 mod_data: Stop testing template creation on field creation
...
The default template is no longer created when creating the fields with
the generator, so we should stop testing that it is.
2023-01-10 11:39:40 +08:00
Andrew Nicols
103b17c761
MDL-76811 mod_data: Generator test cleanup
2023-01-10 11:39:39 +08:00
Ilya Tregubov
05535e38df
Merge branch 'MDL-76497-master' of https://github.com/junpataleta/moodle
2022-12-01 08:56:09 +03:00
Marina Glancy
a800e7e62f
MDL-74853 various: add second parameter to htmlentities functions
...
Default value of the $flag argument changed in PHP 8.1 from ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE
To ensure consistent behavior across different PHP version the second parameter is now required for the functions:
htmlspecialchars(), htmlentities(), htmlspecialchars_decode(), html_entity_decode() and get_html_translation_table()
2022-11-28 16:12:20 +01:00
Jun Pataleta
c6ab792ddf
MDL-76497 upgrade: add the 4.1.0 separation line to all upgrade scripts
2022-11-28 14:43:04 +08:00
Andrew Nicols
08a19dbed8
Merge branch 'MDL-76403-master' of https://github.com/junpataleta/moodle
2022-11-24 10:18:22 +08:00
Andrew Nicols
688873c84b
Merge branch 'MDL-76395-master-enfix' of https://github.com/vmdef/moodle
2022-11-24 10:16:39 +08:00
Víctor Déniz
d4de7b630e
MDL-76395 lang: Use fixed strings in tests
2022-11-23 17:03:58 +00:00
Helen Foster
74828e8149
MDL-76395 lang: Import fixed English strings (en_fix)
2022-11-23 17:03:58 +00:00