mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: Validation result was ignoring the $valid flag passed as the first argument.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@63890 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
aa9a337c5c
commit
d8dd8097e1
@ -23,7 +23,7 @@ class ValidationResult extends Object {
|
||||
* By default, it is a successful result. Call $this->error() to record errors.
|
||||
*/
|
||||
function __construct($valid = true, $message = null) {
|
||||
$this->isValid = true;
|
||||
$this->isValid = $valid;
|
||||
if($message) $this->errorList[] = $message;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user