mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00: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.
|
* By default, it is a successful result. Call $this->error() to record errors.
|
||||||
*/
|
*/
|
||||||
function __construct($valid = true, $message = null) {
|
function __construct($valid = true, $message = null) {
|
||||||
$this->isValid = true;
|
$this->isValid = $valid;
|
||||||
if($message) $this->errorList[] = $message;
|
if($message) $this->errorList[] = $message;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user