[AMOS commit] MDL-78217 grade: Refine front-end weight handling and add validation Committed into Git: 2023-09-03 14:41 UTC

[AMOS commit] MDL-78217 grade: Refine front-end weight handling and add validation Committed into Git: 2023-09-03 14:41 UTC

by AMOS bot -
Number of replies: 0
Author: Shamim Rezaie
MDL-78217 grade: Refine front-end weight handling and add validation
In this commit, the front-end experience for grade item weights in the
gradebook setup page is refined, building upon the improvements made in
the previous commit.

Firstly, overridden weights are excluded from automatic adjustments.
This enhancement guarantees that user-specified weights remain unchanged
by front-end calculations, thereby preserving the flexibility of custom
weight assignments.

Additionally, front-end form validation has been introduced to enhance
the user experience. Now, users will see validation errors if they
submit invalid values, giving them the opportunity to correct the values
themselves. This ensures that weights are not automatically normalised
by the back-end code, preserving the values as entered by the user.


http://git.moodle.org/gw?p=moodle.git;a=commit;h=6aa05cfb9acd2596c13d88e3f2dd44078f499ed0
http://github.com/moodle/moodle/commit/6aa05cfb9acd2596c13d88e3f2dd44078f499ed0

+ 4.3 en [erroroverweight,core_grades]
+ 4.3 en [errorunderweight,core_grades]