mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Remove array check since setSubmittedValue() no longer supports it
This commit is contained in:
parent
958736502a
commit
d3afa0c3b5
@ -338,10 +338,6 @@ class DateField extends TextField
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_array($value)) {
|
|
||||||
throw new InvalidArgumentException("Use setSubmittedValue to assign by array");
|
|
||||||
}
|
|
||||||
|
|
||||||
// Re-run through formatter to tidy up (e.g. remove time component)
|
// Re-run through formatter to tidy up (e.g. remove time component)
|
||||||
$this->value = $this->tidyISO8601($value);
|
$this->value = $this->tidyISO8601($value);
|
||||||
return $this;
|
return $this;
|
||||||
|
@ -349,9 +349,6 @@ class DatetimeField extends TextField
|
|||||||
$this->value = null;
|
$this->value = null;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
if (is_array($value)) {
|
|
||||||
throw new InvalidArgumentException("Use setSubmittedValue to assign by array");
|
|
||||||
};
|
|
||||||
|
|
||||||
// Validate iso 8601 date
|
// Validate iso 8601 date
|
||||||
// If invalid, assign for later validation failure
|
// If invalid, assign for later validation failure
|
||||||
|
Loading…
Reference in New Issue
Block a user