Replaced the deprecated get_all_user_name_fields() function with the new \core_user\fields API across multiple files to ensure compatibility with Moodle 4.3.
Fixed an issue where the user ID could be missing in the print_teacher_grade_table function. An additional check has been implemented to ensure every user has a valid user->id before processing. In case of missing ID, an error is logged and the user is skipped. This prevents attempts to write to the database with NULL values for 'userid', improving the module's stability and reliability.
get_all_user_name_fields()
function with the new\core_user\fields
API across multiple files to ensure compatibility with Moodle 4.3.print_teacher_grade_table
function. An additional check has been implemented to ensure every user has a validuser->id
before processing. In case of missing ID, an error is logged and the user is skipped. This prevents attempts to write to the database with NULL values for 'userid', improving the module's stability and reliability.