Merge pull request #1196 from Instagraeme/patch-1

Correct exception message in form constructor
This commit is contained in:
Will Rossiter 2013-02-18 14:44:13 -08:00
commit d00fa67f3e

View File

@ -161,7 +161,7 @@ class Form extends RequestHandler {
throw new InvalidArgumentException('$fields must be a valid FieldList instance');
}
if(!$actions instanceof FieldList) {
throw new InvalidArgumentException('$fields must be a valid FieldList instance');
throw new InvalidArgumentException('$actions must be a valid FieldList instance');
}
if($validator && !$validator instanceof Validator) {
throw new InvalidArgumentException('$validator must be a Valdidator instance');