111075 Commits

Author SHA1 Message Date
Huong Nguyen
4a115b8118
MDL-78619 theme: Communication button fix for Classic 2023-09-08 22:13:10 +08:00
Jun Pataleta
e0d2040aaa
MDL-79048 course: Update page title when toggling bulk editing
* When toggling bulk editing, updating the page's title can help users,
especially screen reader users, to determine the current editing state
of the course homepage.
2023-09-08 21:55:34 +08:00
Jun Pataleta
7c88f2abdc
MDL-79048 course: Add editing versions of course view page titles
* Create 'editing' versions of the coursetitle and coursesectiontitle
lang strings used for the page title of the course homepage and use
these when editing mode is turned on to provide immediate information
to users, especially screen reader users, the current state of the
course homepage.
2023-09-08 21:42:20 +08:00
Alex Yeung
b690c21eab MDL-78474 mod_label: fix phpunit and behat tests 2023-09-08 12:13:23 +01:00
stemiwe
d73d56f070 MDL-78474 mod_label: include new field for name 2023-09-08 12:08:59 +01:00
Ferran Recio
d54027dc6d MDL-78826 tool_componentlibrary: add dropdown js controls 2023-09-08 10:23:29 +02:00
Ferran Recio
c87fe6036d MDL-78826 javascript: add dropdown js controls 2023-09-08 10:23:13 +02:00
AMOS bot
0cf21fce5f Automatically generated installer lang files 2023-09-08 00:10:53 +00:00
Laurent David
0335adeff4 MDL-77545 mod_bigbluebuttonbn: Add form extension
* Add a new way to extend the BigBlueButtonBN form via subplugins
* Allow subplugins to extends information via new tables and use it in
the edit form.
* Add a new cache helping with potential perfomance issues introduced
by recurring calls to find out about associated tables in subplugins.
2023-09-07 17:20:05 +02:00
Laurent David
3d05bc7da3 MDL-77545 mod_bigbluebuttonbn: Refactor get_instances_implementing
* We need a way to either have the classes implementing an interface/abstract
class or create instances.
2023-09-07 17:17:51 +02:00
Paul Holden
c7d08f855e
MDL-79291 h5p: handle content type creation errors in test generator.
If the endpoint is temporarily down and/or misbehaving, then at least
we'll a clearer failure message.
2023-09-07 15:38:45 +01:00
Paul Holden
b4a7583d58
MDL-79286 mod_quiz: account for users with multiple enrolments.
The quiz override form should account for this, to ensure duplicate
user records don't trigger DML debugging.
2023-09-07 11:33:58 +01:00
Huong Nguyen
bd372a63d2
Merge branch 'MDL-78619-master' of https://github.com/mickhawkins/moodle 2023-09-07 15:19:18 +07:00
Mikel Martín
8af68bbe09 MDL-78558 core_courseformat: Activity cards UI improvements
- Fix action menu and completion button size
- New 'Add activity' button styles
- Fix restriction container styles
- Fix action menu and groupmode button styles
- Fix hover styles for action menu and groupmode button
- Fix groupmode spacing styles
- Homogenize completion button colours
- Fix inplaceeditable and badge positioning
- Fix export filesize related behat
- Homogenize activity/section availability
- New add topic styles
2023-09-07 09:34:43 +02:00
Mikel Martín
c4a23af241 MDL-78607 availability: Add loading icon to restrictions form input 2023-09-07 09:02:03 +02:00
Ilya Tregubov
676afe98b8
Merge branch 'MDL-70371-master-rebased' of https://github.com/stevandoMoodle/moodle 2023-09-07 14:50:19 +08:00
Ilya Tregubov
224b3f2e0b
Merge branch 'MDL-78082-master' of https://github.com/rezaies/moodle 2023-09-07 14:31:03 +08:00
Jun Pataleta
4cb02d8839
Merge branch 'MDL-78795-master' of https://github.com/phmemmel/moodle 2023-09-07 14:17:12 +08:00
Stevani Andolo
dbf83c72c7 MDL-70371 core: Defined password length
1. Modified the password related forms
2. Added a new constant in moodlelib.php called MAX_PASSWORD_CHARACTERS
3. Added a new method in moodlelib.php called exeeds_password_length
4. Updated the upgrade.text
2023-09-07 12:29:10 +08:00
Jun Pataleta
9d85da5527
Merge branch 'MDL-77863-master' of https://github.com/junpataleta/moodle 2023-09-07 11:04:21 +08:00
Jun Pataleta
60d350c59d
MDL-77863 theme_boost: Fix colours
* Fix tag area text shadow colour. It is originally set to
  `rgba(255, 255, 255, 0.5)` so it should be `rgba($white, 0.5)`
  instead of `rgba($black, 0.5)`.
* Revert colour for `$content-item-unread-colour` to `#f4f4f4` instead
  of `$gray-100`.
2023-09-07 10:57:50 +08:00
Safat
44646941f8 MDL-79155 core_course: Change default communication to none 2023-09-07 12:11:18 +10:00
Angelia Dela Cruz
3ed02cfc1f MDL-79220 mod_glossary: Behat for glossary entry with attachment 2023-09-07 09:38:14 +08:00
Ilya Tregubov
d77673e6ea
Merge branch 'MDL-78956-master' of https://github.com/ferranrecio/moodle 2023-09-07 08:59:46 +08:00
Ilya Tregubov
e4c3ab5505
Merge branch 'MDL-78972-master' of https://github.com/roland04/moodle 2023-09-07 08:55:29 +08:00
Shamim Rezaie
56abfc2d22 MDL-78082 gradereport_grader: Acceptance test for locking 2023-09-07 05:46:55 +10:00
Benjamin Abraham
e7caf8bd5f MDL-77863 theme: hardcoded colors in boost moved into variables
Moved all hardcoded colors found in the boost/moodle scss files into variables to make theming and child theme development easier.
2023-09-06 16:20:51 +02:00
Paul Holden
2518317649
MDL-75371 core: fix typos in reverse proxy setup docs. 2023-09-06 14:38:08 +01:00
Paul Holden
4be889a1c7
Merge branch 'patch-1' of https://github.com/ewjoachim/moodle 2023-09-06 14:25:57 +01:00
Shamim Rezaie
8e73a9ec19 MDL-78082 core_grades: Incomplete Grade Item Handling Enhanced
Problem:
In grade_edittree_column_status::get_category_cell, an assumption was
made that $category->grade_item is always populated. However, this was
not guaranteed, leading to potential issues.

Solution:
To ensure $category->grade_item availability, a $category->load_grade_item();
call was introduced in grade_edittree_column_status::get_category_cell.
This guarantees safe usage of $category->grade_item.

Furthermore, in grade_edit_tree::build_html_tree, $category->get_grade_item()
was replaced with $category->load_grade_item() for enhanced reliability
and potential performance improvement.

Explanation:
These changes enhance robustness and efficiency in gradebook.
Addressing incomplete grade item handling improves code reliability and
user experiences.
2023-09-06 22:20:39 +10:00
Shamim Rezaie
4cf11157c2 MDL-78082 core_grades: Fix locking inconsistency
Problem:
In Moodle 4.2, an unintended change in behaviour occurred when locking
and unlocking grade items. Previously, in Moodle 4.1, locking a grade
item and then subsequently unlocking the grade item left specific grades
for students still locked if they were being locked individually.
However, in Moodle 4.2, the unintended change caused the individual
grades to be unlocked along with the grade item.

Solution:
To address this issue, I modified the set_locked calls in action.php to
pass the cascade parameter as false. Now, when locking or unlocking a
grade item, only the grade item itself is affected, leaving individual
grades unchanged. I have also modified the locking behaviour in the
grade_category class. So, similarly, when locking or unlocking a grade
category, the change applies only to the grade items and grade
categories within the category, without expanding to individual grades.

Explanation:
By making this change, we ensure that the locking mechanism behaves as
expected, providing a consistent and desirable user experience. Locking
and unlocking a grade item or category will no longer inadvertently
affect individual grades, preserving their locked status and avoiding
loss of data when unlocking a grade item associated with the total mark
of a category.
2023-09-06 22:20:39 +10:00
Shamim Rezaie
09ef2d0aa5 MDL-78082 core_grades: lock/unlock all option for grade categories
A lock/unlock option is added to the context menu of the grade
categories again. But it is only used as an auxiliary tool to lock or
unlock all the grade items within the category.
2023-09-06 22:20:39 +10:00
Shamim Rezaie
b208ea26d1 MDL-78082 core_grades: Hide lock/unlock options for grade categories
Problem:
The grade_categories table lacks a 'locked' field, making it technically
impossible to lock grade categories. In Moodle 4.1, the "category total"
column could be locked (from the edit category form), but locking grade
categories directly was not supported.

Solution:
In response to the issue, the lock/unlock feature for grade categories
has been removed. Since the grade_categories table does not have the
necessary 'locked' field, attempting to implement category locking would
be infeasible. As a result, the feature has been removed from the
interface to avoid confusion.

Explanation:
By removing the lock/unlock feature for grade categories, we ensure that
users no longer encounter non-functional options and prevent any
potential misunderstandings about the locking behaviour. Additionally,
this change aligns the user interface with the underlying database
schema and eliminates any misleading functionality.
2023-09-06 22:19:40 +10:00
Shamim Rezaie
fb3f018cf6 MDL-78082 core_grades: Fix locking issue with natural aggregation
Problem:
When the aggregation method is set to "natural," grade items' weights
and the maximum grade of the grade category's item get recalculated,
causing the needsupdate flag to be set to true. As a result, the locking
process was skipped, leading to unexpected behaviour.

Solution:
To address the issue, the set_locked method has been modified. Instead
of skipping the locking process, the method now schedules the locking of
grade items to occur slightly in the past, specifically one second in
the past. This ensures that the grade item will be automatically locked
after the recalculations are completed.

Explanation:
By making this adjustment, we ensure that the locking process is not
skipped during natural aggregation, maintaining consistent behaviour and
preventing any unintended consequences related to grade item locking.
2023-09-06 22:19:40 +10:00
Shamim Rezaie
a1cf8f143a MDL-78082 gradereport_grader: Enter should submit the form
Problem:
Previously, when users pressed the Enter key while interacting with the
grader report, instead of submitting the form, a table column was
inadvertently expanded or collapsed. This behaviour occurred due to the
expand/collapse buttons lacking an explicit 'type' attribute within the
form. As a result, these buttons were mistakenly treated as submit
buttons.

Solution:
In this commit, we have addressed the issue by ensuring that the
expand/collapse buttons now have the correct 'type' attribute set,
explicitly identifying them as non-submit buttons. This adjustment
prevents them from interfering with form submission unintentionally.

Explanation:
By making this fix, we improve the user experience in the grade book,
allowing users to navigate and interact with the interface more
smoothly. Pressing the Enter key will now trigger the form submission as
expected, rather than inadvertently activating expand/collapse actions.
2023-09-06 22:18:40 +10:00
Marina Glancy
3b160c7b71 MDL-79241 tool_mfa: correctly setup standard plugin type 2023-09-06 09:14:25 +01:00
Noel De Martin
87d4c398e3 MDL-79277 tool_mobile: Fix warning 2023-09-06 09:05:10 +02:00
Ilya Tregubov
4fa5a40f34
Merge branch 'MDL-76865-master' of https://github.com/daledavies/moodle 2023-09-06 14:48:15 +08:00
Andrew Nicols
aa7f105139
Merge branch 'MDL-79205' of https://github.com/paulholden/moodle 2023-09-06 12:52:28 +08:00
Andrew Nicols
add1afeea1
Merge branch 'MDL-79244-master' of https://github.com/lucaboesch/moodle 2023-09-06 12:49:24 +08:00
Andrew Nicols
1629a219e9
MDL-78779 gradereport_user: Replace wait steps with expectations 2023-09-06 12:40:45 +08:00
Andrew Nicols
4bfd20983d
MDL-78779 core: Do not re-render combo searchresults if term unchanged 2023-09-06 12:28:36 +08:00
Andrew Nicols
c7a05345b6
MDL-78779 core: Wrap combobox debounce in pending Promise
This addresses a random failure with the combobox search results where
the debounce causes the results to be shown, and then the same search
result is returned again, re-rendered, and replaced after Behat has
moved on.
2023-09-06 12:27:45 +08:00
Ilya Tregubov
bf109995b0
Merge branch 'master_MDL-67774' of https://github.com/mattporritt/moodle 2023-09-06 11:51:56 +08:00
meirzamoodle
3c3021a641 MDL-79210 lib: Code adjustments to the PHPSpreadSheet 1.29.0 2023-09-06 10:51:08 +07:00
meirzamoodle
e55ecbac8c MDL-79210 lib: Upgrade PHPSpreadSheet to 1.29.0 2023-09-06 10:51:08 +07:00
Matt Porritt
1560be7b7e MDL-67774 Authentication: Specify password peppers in config.php
Add a pepper to the users supplied password.
The pepper is stored in CFG and user to add extra security to
the password hash. By effectively breaking the information to
create the hashed password into two and storing it in more
than one place.
2023-09-06 13:47:51 +10:00
Jun Pataleta
5b06e8b01c
MDL-79057 gradereport_singleview: Use proper hidden attribute value
HTML attribute hidden="1" is invalid. It either needs to be set to an
empty string or use the keyword "hidden" for its value.
2023-09-06 10:32:33 +08:00
Ilya Tregubov
e8ac466426
Merge branch 'MDL-76459' of https://github.com/stronk7/moodle 2023-09-06 10:02:19 +08:00
Luca Bösch
45c9000653 MDL-79244 backup: fix typo for questioncannotberestored.
AMOS BEGIN
 MOV [questionegorycannotberestored,backup],[questioncannotberestored,backup]
AMOS END
2023-09-05 22:30:36 +02:00