Paul Holden
052007b732
MDL-65356 mod_data: update entry editing/deletion to not leak sesskey.
2025-04-10 10:07:11 +07:00
Mikel Martín
afc113f33c
MDL-84951 theme_boost: Fix deprecated Bootstrap class usages
2025-04-03 10:46:27 +02:00
Huong Nguyen
7e497dedc4
Merge branch 'MDL-81825-main' of https://github.com/roland04/moodle
2024-12-11 09:52:51 +07:00
Mikel Martín
f9abc562f5
MDL-81825 theme_boost: Refactor .sr-only usages for BS5
...
- Add .visually-hidden to the Boostratp 5 bridge SCSS file
- Replace .sr-only occurrences with .visually-hidden
- Replace .dropzone-sr-only-focusable with .dropzone-visually-hidden-focusable
for consistency
2024-12-10 14:02:32 +01:00
Charles Fulton
fb3349e821
MDL-82313 mod_data: refactor field icon display
2024-12-09 09:30:59 -05:00
Huong Nguyen
282f9dc2ad
Merge branch 'MDL-82932-main' of https://github.com/PhMemmel/moodle
2024-11-28 09:27:45 +07:00
Jun Pataleta
d88d8d902d
MDL-83747 mod_data: Add accessible name for delcheck checkboxes
2024-11-18 19:38:40 +08:00
Philipp Memmel
5cceeccca5
MDL-82932 mod_data: Fix export with userdata of deleted users
2024-11-11 12:33:35 +01:00
Andrew Nicols
024e36be17
MDL-81634 core: Fix all implicitly defined nullables
...
Note: This does not impact third-party libraries.
2024-08-02 14:11:12 +08:00
Paul Holden
7594612fab
MDL-81274 mod_data: observe current approved value on record import.
2024-04-22 12:48:51 +01:00
Laurent David
ffa045e099
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:08 +02:00
Paul Holden
91297498a2
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 15:51:18 +01:00
Eloy Lafuente (stronk7)
ba1f804ffa
MDL-65292 style: Fix all function declarations white space
...
This has been generated running the following Sniffs, all
them part of the Moodle's CodeSniffer standard:
- PSR12.Functions.ReturnTypeDeclaration
- PSR12.Functions.NullableTypeDeclaration
- moodle.Methods.MethodDeclarationSpacing
- Squiz.Whitespace.ScopeKeywordSpacing
All them are, exclusively, about correct spacing, so the changes
are, all them, only white space changes.
Only exceptions to the above are 3 changes what were setting the
return type in a new line, and, when that happens, the closing
parenthesis (bracket) has to go to the same line than the colon.
2024-02-28 23:33:26 +01:00
Paul Holden
2a07f77406
MDL-79633 mod_data: correct timemodified tag replacement attribute.
2023-10-09 19:26:10 +01:00
Jun Pataleta
fdc726d7e4
Merge branch 'MDL-76034-master' of https://github.com/andrewnicols/moodle
2023-09-08 22:14:27 +08:00
Jun Pataleta
59d5458c7f
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:39:04 +08:00
raortegar
d6b8dd892c
MDL-76034 mod_data: Add type definitions and return values
...
Type definitions and return values for methods get_field_class_name() and data_get_field()
2023-08-24 23:23:17 +08:00
Philipp Memmel
fc13869f5a
MDL-40084 mod_data: Rename and move entries ex-/importer classes
...
Also:
- Extend test coverage
- Small bug fixes
- Codestyle
2023-07-01 20:42:01 +02:00
Philipp Memmel
cf2c91dae2
MDL-40084 mod_data: Add file import support
...
Co-authored-by: Stefan Hanauska <stefan.hanauska@csg-in.de >
2023-06-29 19:18:15 +02:00
Philipp Memmel
4003751163
MDL-40084 mod_data: Add file export support
2023-06-29 19:18:15 +02:00
Philipp Memmel
1296a2b868
MDL-40084 mod_data: Refactor importing data
...
Function data_import_csv has been deprecated.
2023-06-29 19:18:14 +02:00
Philipp Memmel
bdf02ec088
MDL-40084 mod_data: Refactor exporting data
...
Functions data_export_csv, data_export_ods, data_get_exportdata have been deprecated.
2023-06-29 19:18:14 +02:00
Amaia Anabitarte
cb50c71245
MDL-76715 mod_data: Remove data_records when the last field is deleted
2023-06-13 10:52:56 +02:00
David Castro
5d9fec141d
MDL-77791 data: Fix file attachment to search doc
2023-04-25 19:51:44 -05: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
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
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
Andrew Nicols
2de031b74c
Merge branch 'MDL-76066-master' of https://github.com/aanabit/moodle
2023-02-09 10:27:00 +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
1f4794341b
Merge branch 'MDL-75498-master' of https://github.com/ferranrecio/moodle
2023-01-31 15:13:33 +08: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
Sara Arjona
ae53d04144
Merge branch 'MDL-75337-master' of https://github.com/laurentdavid/moodle
2023-01-24 16:07: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
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
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
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
Amaia Anabitarte
5f6d35e471
MDL-76083 mod_data: Fix preset importer to remove existing fields.
...
* We should delete fields that have not been marked as to preserve.
Co-authored by: Laurent David <laurent.david@moodle.com >
2022-11-16 16:23:42 +01:00
Sara Arjona
8e535a2346
Merge branch 'MDL-75492-master' of https://github.com/aanabit/moodle
2022-11-16 10:30:47 +01:00
Amaia Anabitarte
1c968103b7
MDL-75492 mod_data: Remove redirection messages on preset apply process
2022-11-16 09:08:26 +01:00
Amaia Anabitarte
9b343752e2
MDL-75492 mod_data: Cosmetic changes on mapping page
2022-11-16 09:08:26 +01:00
Amaia Anabitarte
81b761bab0
MDL-75492 mod_data: Show mapping dialog
2022-11-16 09:08:26 +01:00
Amaia Anabitarte
b755cfa544
MDL-75492 mod_data: Refactor code to get available importing information
2022-11-16 09:08:26 +01:00