Skip to content

Commit

Permalink
Enable gradebook as requirement only for session - refs BT#9893 #TMI
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Jul 7, 2015
1 parent 0e0cae4 commit 3d92ae2
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions main/gradebook/lib/fe/catform.class.php
Expand Up @@ -371,11 +371,16 @@ private function build_basic_form()
);
}

$isRequirementCheckbox = $this->addCheckBox(
'is_requirement',
null,
get_lang('IsRequirement')
);
if (!empty(api_get_session_id())) {
$isRequirementCheckbox = $this->addCheckBox(
'is_requirement',
[
null,
get_lang('ConsiderThisGradebookAsRequirementForASessionSequence')
],
get_lang('IsRequirement')
);
}

if ($this->category_object->getIsRequirement()) {
$isRequirementCheckbox->setChecked(true);
Expand Down

0 comments on commit 3d92ae2

Please sign in to comment.