mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
merge from 18 STABLE MDL-8809
This commit is contained in:
parent
a7b696ef38
commit
38a2212c8f
@ -68,7 +68,7 @@ class question_dataset_dependent_items_form extends moodleform {
|
||||
$this->noofitems = 0;
|
||||
}
|
||||
//------------------------------------------------------------------------------------------------------------------------------
|
||||
$mform->addElement('submit', 'updatedatasets', get_string('Update the datasets parameters', 'qtype_datasetdependent'));
|
||||
$mform->addElement('submit', 'updatedatasets', get_string('updatedatasetparam', 'qtype_datasetdependent'));
|
||||
$mform->addElement('header', 'additemhdr', get_string('itemtoadd', 'qtype_datasetdependent'));
|
||||
$idx = 1;
|
||||
$j = (($this->noofitems) * count($this->datasetdefs))+1;
|
||||
@ -202,7 +202,7 @@ class question_dataset_dependent_items_form extends moodleform {
|
||||
|
||||
function validation($data){
|
||||
$errors = array();
|
||||
if (isset($data['backtoquiz']) && ($this->noofitems===0)){
|
||||
if (isset($data['backtoquiz']) && ($this->noofitems==0)){
|
||||
$errors['addbutton'] = get_string('youmustaddatleastoneitem', 'qtype_datasetdependent');
|
||||
}
|
||||
return $errors;
|
||||
|
Loading…
x
Reference in New Issue
Block a user