Skip to content

Commit

Permalink
Fixed issue #09909 : disallow time for SubQuestion code (allow Time/T…
Browse files Browse the repository at this point in the history
…IME ...) for export issue

Dev: Done in models rules directly
Dev: Must validate it before submit (and show a beautifull error), using ajax ?
Dev: if we use #528 : we can allow time
  • Loading branch information
Shnoulle committed Aug 26, 2016
1 parent 0dc108e commit 6268ab1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/Question.php
Expand Up @@ -146,8 +146,8 @@ public function rules()
}
else
{
$aRules[]= array('title', 'compare','compareValue'=>'time','operator'=>'!=', 'message'=> gT("'time' is a reserved word and can not be used for subquestion."), 'except' => 'archiveimport' );
$aRules[]= array('title', 'match', 'pattern' => '/^[[:alnum:]]*$/', 'message' => gT('Subquestion codes may only contain alphanumeric characters.'), 'except' => 'archiveimport');

}
return $aRules;
}
Expand Down

0 comments on commit 6268ab1

Please sign in to comment.