This commit is contained in:
Sara Arjona 2025-04-14 17:01:14 +02:00
commit f17ab58482
No known key found for this signature in database
5 changed files with 10 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -163,6 +163,9 @@ const applyInstanceTypeProfile = (profileType, isFeatureEnabled) => {
// Competencies validation.
showFieldset('id_competenciessection', showAll ||
isFeatureEnabled(profileType, 'competenciessection'));
// Standards grading feature validation.
showFieldset('id_modstandardgrade', showAll ||
isFeatureEnabled(profileType, 'modstandardgrade'));
// Completion validation.
showFieldset('id_activitycompletionheader', showAll ||
isFeatureEnabled(profileType, 'activitycompletionheader'));

View File

@ -42,6 +42,10 @@ class mod_helper {
self::process_pre_save_checkboxes($bigbluebuttonbn);
self::process_pre_save_common($bigbluebuttonbn);
$bigbluebuttonbn->participants = htmlspecialchars_decode($bigbluebuttonbn->participants, ENT_COMPAT);
// Conditionally force grade type to none if the activity is recording only.
if ($bigbluebuttonbn->type == instance::TYPE_RECORDING_ONLY) {
$bigbluebuttonbn->grade = GRADE_TYPE_NONE;
}
}
/**

View File

@ -325,7 +325,7 @@ class bigbluebutton_proxy extends proxy_base {
'features' => ['showroom', 'welcomemessage', 'voicebridge', 'waitformoderator', 'userlimit',
'recording', 'sendnotifications', 'lock', 'preuploadpresentation', 'permissions', 'schedule', 'groups',
'modstandardelshdr', 'availabilityconditionsheader', 'tagshdr', 'competenciessection',
'completionattendance', 'completionengagement', 'activitycompletionheader',
'completionattendance', 'completionengagement', 'activitycompletionheader', 'modstandardgrade',
],
],
instance::TYPE_RECORDING_ONLY => [