mvc: remove special validation messages likely never seen

We could use defaultValidationMessage() but the BaseListField message
is fitting enough and the GUI itself cannot cause this to happen.
The reason for stripping is also that the variable is not handled by
the field so there is no special validation meaning attached either.

For BaseField derivates the idea was to set a custom required validation
message which is no longer possible or possibly not even reachable.
This commit is contained in:
Franco Fichtner 2023-09-22 10:37:14 +02:00
parent 9cb123ce7f
commit ac0fcaa406
4 changed files with 0 additions and 22 deletions

View File

@ -51,11 +51,6 @@ class AuthenticationServerField extends BaseListField
*/
private $internalCacheKey = '*';
/**
* @var string default validation message string
*/
protected $internalValidationMessage = "please specify a valid authentication server";
/**
* generate validation data (list of AuthServers)
*/

View File

@ -41,11 +41,6 @@ class ConfigdActionsField extends BaseListField
*/
private static $internalStaticOptionList = array();
/**
* @var string default validation message string
*/
protected $internalValidationMessage = "please specify a valid action";
/**
* @var array filters to use on the configd selection
*/

View File

@ -47,11 +47,6 @@ class AliasContentField extends BaseField
*/
protected $internalIsContainer = false;
/**
* @var string default validation message string
*/
protected $internalValidationMessage = "alias name required";
/**
* @var array list of known countries
*/
@ -82,7 +77,6 @@ class AliasContentField extends BaseField
return $result;
}
/**
* split and yield items
* @param array $data to validate
@ -344,7 +338,6 @@ class AliasContentField extends BaseField
}
return $messages;
}
//
/**
* retrieve field validators for this field type

View File

@ -44,11 +44,6 @@ class AliasNameField extends BaseField
*/
protected $internalIsContainer = false;
/**
* @var string default validation message string
*/
protected $internalValidationMessage = "alias name required";
/**
* retrieve field validators for this field type
* @return array returns list of validators