From 5a5487ff7f6492b8d3c3282cc8445d069f092929 Mon Sep 17 00:00:00 2001 From: Pierre Pichet Date: Sat, 24 Apr 2010 09:48:37 +0000 Subject: [PATCH] correcting the addrule required --- question/export_form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/question/export_form.php b/question/export_form.php index d58aa553e64..68e3ea96cc1 100644 --- a/question/export_form.php +++ b/question/export_form.php @@ -22,7 +22,7 @@ class question_export_form extends moodleform { $mform->setHelpButton("formathelp[$i]", array("$shortname",$fileformatname,"qformat_$shortname")); $i++ ; } - $mform->addRule('format',null,'required',null,'client'); + $mform->addRule("formathelp[0]",null,'required',null,'client'); //-------------------------------------------------------------------------------- $mform->addElement('header','general', get_string('general', 'form'));