merge from 18 STABLE MDL-8809

This commit is contained in:
pichetp 2007-03-08 07:10:12 +00:00
parent a7b696ef38
commit 38a2212c8f

View File

@ -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;