From aefa34adf1abb5a79da433654715238507bd0d7f Mon Sep 17 00:00:00 2001 From: Yoselyn Castillo Date: Fri, 11 Oct 2013 09:22:08 -0400 Subject: [PATCH] enable gradebook box even if assessment is invisible -refs #6744 --- main/work/work.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/work/work.php b/main/work/work.php index 59a5a07926..9066f7ec90 100644 --- a/main/work/work.php +++ b/main/work/work.php @@ -328,7 +328,7 @@ switch ($action) { //QualificationOfAssignment $form->addElement('text', 'qualification_value', get_lang('QualificationNumeric')); - if (Gradebook::is_active()) { + if ((api_get_session_id() != 0 && Gradebook::is_active()) || api_get_session_id() == 0) { $form->addElement('checkbox', 'make_calification', null, get_lang('MakeQualifiable'), array('id' =>'make_calification_id', 'onclick' => "javascript: if(this.checked){document.getElementById('option1').style.display='block';}else{document.getElementById('option1').style.display='none';}")); } else { //QualificationOfAssignment