Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-28410 Choice - allow single answer choice to be created

  • Loading branch information...
commit 984c6bd358a50ffb3a487b0d3ece26ee72a699aa 1 parent 1389810
@danmarsden danmarsden authored skodak committed
View
1  mod/choice/lang/en/choice.php
@@ -32,6 +32,7 @@
$string['displayvertical'] = 'Display vertically';
$string['expired'] = 'Sorry, this activity closed on {$a} and is no longer available';
$string['fillinatleastoneoption'] = 'You need to provide at least two possible answers.';
+$string['atleastoneoption'] = 'You need to provide at least one possible answer.';
$string['full'] = '(Full)';
$string['havetologin'] = 'You have to log in before you can submit your choice';
$string['choice'] = 'Choice';
View
6 mod/choice/mod_form.php
@@ -127,11 +127,7 @@ function validation($data, $files) {
}
if ($choices < 1) {
- $errors['option[0]'] = get_string('fillinatleastoneoption', 'choice');
- }
-
- if ($choices < 2) {
- $errors['option[1]'] = get_string('fillinatleastoneoption', 'choice');
+ $errors['option[0]'] = get_string('atleastoneoption', 'choice');
}
return $errors;
View
2  mod/choice/version.php
@@ -5,7 +5,7 @@
// This fragment is called by /admin/index.php
////////////////////////////////////////////////////////////////////////////////
-$module->version = 2010101300;
+$module->version = 2010101301;
$module->requires = 2010080300; // Requires this Moodle version
$module->cron = 0;
Please sign in to comment.
Something went wrong with that request. Please try again.