110784 Commits

Author SHA1 Message Date
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
Andrew Nicols
00f0613f99
on-demand release 4.3dev+ 2023-09-05 22:27:40 +08:00
Andrew Nicols
cc60490854
Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2023-09-05 22:27:36 +08:00
AMOS bot
64bb886164 Automatically generated installer lang files 2023-09-05 14:25:23 +00:00
Jun Pataleta
f566bf4601
Merge branch 'MDL-78874-master' of https://github.com/danghieu1407/moodle 2023-09-05 12:05:59 +08:00
Ilya Tregubov
88ce8754b2
Merge branch 'MDL-77296-master' of https://github.com/davewoloszyn/moodle 2023-09-05 11:59:29 +08:00
Andrew Nicols
77dc50a76a
Merge branch 'MDL-79132' of https://github.com/AnupamaSarjoshi/moodle 2023-09-05 11:52:36 +08:00
Andrew Nicols
258698e6f3
MDL-75268 core: Add tiny_premium to list of standard plugins 2023-09-05 11:44:07 +08:00
Andrew Nicols
b3d8c1a862
Merge branch 'MDL-75268-master' of https://github.com/davewoloszyn/moodle 2023-09-05 11:39:41 +08:00
Andrew Nicols
ba1093c973
Merge branch 'MDL-78865' of https://github.com/danmarsden/moodle 2023-09-05 11:28:30 +08:00
Andrew Nicols
bbfa50946e
Merge branch 'MDL-79253-master' of https://github.com/junpataleta/moodle 2023-09-05 11:25:26 +08:00
Andrew Nicols
4e5ce1469c
Merge branch 'MDL-79060-master' of https://github.com/junpataleta/moodle 2023-09-05 11:23:46 +08:00
Jun Pataleta
4aeada159d
MDL-79060 course: Deprecate unused aria:courseimage lang string 2023-09-05 11:12:18 +08:00
Jun Pataleta
40da6b8f0c
MDL-79060 course: Use course name for the course image link 2023-09-05 11:10:13 +08:00
Andrew Nicols
ce4d696004
Merge branch 'MDL-79230' of https://github.com/paulholden/moodle 2023-09-05 10:56:28 +08:00
Ilya Tregubov
cbe667fe66
Merge branch 'MDL-78744-master' of https://github.com/roland04/moodle 2023-09-05 10:54:52 +08:00
Andrew Nicols
ee81bfabe8
Merge branch 'MDL-77061' of https://github.com/dravek/moodle 2023-09-05 10:53:19 +08:00
Andrew Nicols
1e6e9052ba
Merge branch 'MDL-79236' of https://github.com/paulholden/moodle 2023-09-05 10:40:53 +08:00
Andrew Nicols
2c830e04eb
Merge branch 'MDL-79237' of https://github.com/paulholden/moodle 2023-09-05 10:35:19 +08:00
Andrew Nicols
4e5510fcd7
Merge branch 'MDL-79238' of https://github.com/paulholden/moodle 2023-09-05 10:34:57 +08:00
Andrew Nicols
146a410d3a
Merge branch 'MDL-78946' of https://github.com/paulholden/moodle 2023-09-05 10:34:40 +08:00
Andrew Nicols
0d6650a928
Merge branch 'MDL-79191' of https://github.com/paulholden/moodle 2023-09-05 10:32:48 +08:00
Andrew Nicols
67bf116bfc
Merge branch 'MDL-79088-master' of https://github.com/marinaglancy/moodle 2023-09-05 10:28:46 +08:00
AMOS bot
2280913817 Automatically generated installer lang files 2023-09-05 00:11:57 +00:00
Andrew Nicols
c550194bce
Merge branch 'MDL-73734-streaming-output-api' of https://github.com/brendanheywood/moodle 2023-09-04 22:21:17 +08:00
Jun Pataleta
9392905d77
MDL-79253 mod_scorm: Require locallib when deleting SCORM instances 2023-09-04 21:24:11 +08:00
Marina Glancy
77d3c5b1b0 MDL-79088 navigation: add stoppable interface to navigation extend hook 2023-09-04 13:36:40 +01:00
Marina Glancy
906dfc2f50 MDL-79088 navigation: new hook to add items to site primary navigation 2023-09-04 13:36:40 +01:00
Paul Holden
4c02baa456
Merge branch 'MDL-79232-master' of https://github.com/marinaglancy/moodle 2023-09-04 11:38:09 +01:00
Mikel Martín
bd7cc81be6 MDL-78744 completion: Split activity_information in completion and dates
Deprecate core_course\output\activity_information class and move its code to two
new classes: core_course\output\activity_completion and core_course\output\activity_dates.
In this process refactor activity_completion improving readability and and also deprecate
renderer_base::activity_information() and core_course_renderer::render_activity_information().
2023-09-04 11:37:20 +02:00
Huong Nguyen
7c6df5d2fd
Merge branch 'MDL-79248-master' of https://github.com/andrewnicols/moodle 2023-09-04 12:32:37 +07:00
Andrew Nicols
c5227b336f
MDL-79248 mod_quiz: Behat scenario interacts incorrectly with select
This test was using the click operator to select an option value, rather
than selecting the value with form field steps.

In addition I found that sometimes the way in which a WS is used to
make the change before a refresh leads to a random failure if the page
navigation happens too slowly.
2023-09-04 11:57:04 +08:00
Paul Holden
f01b902d7e
MDL-79237 tiny_noautolink: define help link text language string. 2023-09-02 11:08:45 +01:00
Paul Holden
34bc525c9f
MDL-79238 tool_mfa: define factor sub-plugins as standard. 2023-09-02 11:07:57 +01:00
Paul Holden
21ba055889
MDL-78946 tool_mfa: define factor subplugin type language strings. 2023-09-02 11:07:01 +01:00
Andrew Nicols
206c3a66e7
weekly release 4.3dev+ 2023-09-02 08:18:19 +08:00
Andrew Nicols
39d15d121a
NOBUG: Fixed SVG browser compatibility 2023-09-02 08:18:16 +08:00
Paul Holden
0bbc8922d8
MDL-79236 editor_tiny: define subplugin type language strings. 2023-09-01 19:21:41 +01:00
Mark Johnson
4f07ff98f4
MDL-72321 question bank: Only update edit switch URL if present 2023-09-01 23:43:20 +08:00
Mark Johnson
4b160a7c7b
MDL-72321 datafilter: Stop disabling jointype field
This was causing behat test failures due to the test trying to
set the disabled jointype field before the filter type was selected.
2023-09-01 23:43:20 +08:00
Paul Holden
ec0ef091f6
MDL-79230 editor_tiny: fix plugin info manage URL.
Co-authored-by: Meirza <meirza.arson@moodle.com>
2023-09-01 15:19:35 +01:00
Marina Glancy
2fe212abcd MDL-79232 navigation: fix undefined var warning 2023-09-01 14:20:29 +01:00
Andrew Nicols
7d6ed82571
Merge branch 'mdl-79204-master' of https://github.com/james-cnz/moodle 2023-09-01 11:58:51 +08:00
Andrew Nicols
34d5e85fb7
Merge branch 'MDL-79108-master' of https://github.com/sarjona/moodle 2023-09-01 11:55:59 +08:00
Huong Nguyen
7ff9b73f77
Merge branch 'MDL-74828-master' of https://github.com/andrewnicols/moodle 2023-09-01 10:53:38 +07:00
Andrew Nicols
39367921b0
Merge branch 'MDL-78930-master' of https://github.com/sarjona/moodle 2023-09-01 11:46:15 +08:00
Huong Nguyen
af31bedf16
Merge branch 'MDL-76092-master' of https://github.com/andrewnicols/moodle 2023-09-01 10:41:18 +07:00
Andrew Nicols
2e58ae5c03
Merge branch 'MDL-78966-master' of https://github.com/rjnl/moodle 2023-09-01 11:31:17 +08:00