Skip to content

Commit

Permalink
Fixed issue: Numeric-only codes on subquestions not being allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Jan 25, 2014
1 parent 136b6b8 commit cde4627
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/Question.php
Expand Up @@ -127,7 +127,7 @@ public function rules()
}
else
{
$aRules[]= array('title', 'match', 'pattern' => '/^[[:alnum:]]*$/', 'message' => 'Question codes must start with a letter and may only contain alphanumeric characters.', 'on' => 'update, insert, import');// Think we can remove the scenario here (on: allways)
$aRules[]= array('title', 'match', 'pattern' => '/^[[:alnum:]]*$/', 'message' => 'Subquestion codes may only contain alphanumeric characters.', 'on' => 'update, insert, import');// Think we can remove the scenario here (on: allways)
}

return $aRules;
Expand Down

0 comments on commit cde4627

Please sign in to comment.