mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Removed message alteration from ValidationResult->error() to make it more predictable for string matching in unit tests like SecurityTest (merged from r98275)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@99705 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
61e27830c6
commit
03b94346ad
@ -34,9 +34,6 @@ class ValidationResult extends Object {
|
||||
* @param $code An optional error code string, that can be accessed with {@link $this->codeList()}.
|
||||
*/
|
||||
function error($message, $code = null) {
|
||||
$message = trim($message);
|
||||
if(substr($message,-1) == '.') $message = substr($message,0,-1);
|
||||
|
||||
$this->isValid = false;
|
||||
|
||||
if($code) {
|
||||
|
Loading…
Reference in New Issue
Block a user