|  | @@ -7,6 +7,8 @@
 | 
	
		
			
				|  |  |   * then by 'ilm_handlers/(html5 or java).php' with copy_new_version_ilm($param, $files_extract)'
 | 
	
		
			
				|  |  |   * 
 | 
	
		
			
				|  |  |   * Release Notes:
 | 
	
		
			
				|  |  | + * - v 2.0.1 2022/09/15
 | 
	
		
			
				|  |  | + *   + Considering table 'iassign_ilm': messages to fields 'evaluate', 'reevaluate', 'editingbehavior'; fixes to allow the edition of 'reevaluate', 'editingbehavior'
 | 
	
		
			
				|  |  |   * - v 1.6.3 2020/04/28
 | 
	
		
			
				|  |  |   *   + Fixed detail: undefinde variable 'if ($filejars!='')' - it was '$filejar'
 | 
	
		
			
				|  |  |   * - v 1.6.2 2020/01/20
 | 
	
	
		
			
				|  | @@ -32,7 +34,7 @@
 | 
	
		
			
				|  |  |   * 'auto_evaluate_help'] = 'If the iLM has automatic evaluation select Yes to use an activity with it.'; // 'What is automatic evaluation
 | 
	
		
			
				|  |  |   * 
 | 
	
		
			
				|  |  |   * @see ./locallib.php : 'add_edit_copy_ilm($ilm_id,$action)' load this script and provides data to it (defines initial values to the form fields)
 | 
	
		
			
				|  |  | - * @see ./settings_ilm.php : load and process this form, it uses data under the name $param
 | 
	
		
			
				|  |  | + * @see ./settings_ilm.php : load and process this form, it uses data under the name $param, calling 'locallib.php!add_edit_copy_ilm(.)'
 | 
	
		
			
				|  |  |   * @see ./ilm_handlers/html5.php : save_ilm_by_xml($application_xml, $files_extract): return null;
 | 
	
		
			
				|  |  |   * 
 | 
	
		
			
				|  |  |   * @author Patricia Alves Rodrigues
 | 
	
	
		
			
				|  | @@ -65,8 +67,8 @@ class mod_ilm_form extends moodleform {
 | 
	
		
			
				|  |  |      global $CFG, $COURSE, $USER, $DB;
 | 
	
		
			
				|  |  |      global $description; // defined in 'settings_ilm.php'
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -//    $mform = & $this->_form;
 | 
	
		
			
				|  |  | -$mform = $this->_form; //leo
 | 
	
		
			
				|  |  | +    // $mform = & $this->_form;
 | 
	
		
			
				|  |  | +    $mform = $this->_form; //leo
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      if ($CFG->action_ilm != 'import') {
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -276,13 +278,24 @@ $mform = $this->_form; //leo
 | 
	
		
			
				|  |  |          $mform->setType('height', PARAM_TEXT);
 | 
	
		
			
				|  |  |          //$mform->addRule('height', get_string('required', 'iassign'), 'required');
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        // Adding the standard "evaluate" field
 | 
	
		
			
				|  |  | +        // Adding the field "evaluate"
 | 
	
		
			
				|  |  |          $mform->addElement('selectyesno', 'evaluate', get_string('auto_evaluate', 'iassign'));
 | 
	
		
			
				|  |  |          $mform->setDefault('evaluate', 1);
 | 
	
		
			
				|  |  |          //$mform->addRule('evaluate', get_string('required', 'iassign'), 'required');
 | 
	
		
			
				|  |  |          $mform->addHelpButton('evaluate', 'auto_evaluate', 'iassign');
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        // Adding the standard "submissionbehavior" field
 | 
	
		
			
				|  |  | +        // Adding the field "reevaluate"
 | 
	
		
			
				|  |  | +        $mform->addElement('selectyesno', 'reevaluate', get_string('auto_reevaluate', 'iassign'));
 | 
	
		
			
				|  |  | +        $mform->setDefault('reevaluate', 1);
 | 
	
		
			
				|  |  | +        $mform->addHelpButton('reevaluate', 'auto_reevaluate', 'iassign');
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        // Adding the field "editingbehavior"
 | 
	
		
			
				|  |  | +        $mform->addElement('selectyesno', 'editingbehavior', get_string('auto_editingbehavior', 'iassign'));
 | 
	
		
			
				|  |  | +        $mform->setDefault('editingbehavior', 1);
 | 
	
		
			
				|  |  | +        $mform->addHelpButton('editingbehavior', 'auto_editingbehavior', 'iassign');
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        // Adding the field "submissionbehavior": behaviour after submission
 | 
	
		
			
				|  |  | +	// + 'iassign_ilm.submissionbehavior' = { 0 =>  remains on the same page; 1 => changes the current page; ... }
 | 
	
		
			
				|  |  |          $mform->addElement('text', 'submissionbehavior', get_string('auto_evaluate', 'iassign'));
 | 
	
		
			
				|  |  |          $mform->setType('submissionbehavior', PARAM_INT);
 | 
	
		
			
				|  |  |  
 |