Commit d656cbf7 authored by Ad Schellevis's avatar Ad Schellevis

(mvc, constraints) rename message to ValidationMessage

parent 5361a64b
......@@ -41,7 +41,7 @@ abstract class BaseConstraint extends Validator implements ValidatorInterface
*/
protected function appendMessage(\Phalcon\Validation $validator, $attribute)
{
$message = $this->getOption('message');
$message = $this->getOption('ValidationMessage');
$name = $this->getOption('name');
if (empty($message)) {
$message = 'validation failure ' . get_class($this);
......
......@@ -22,7 +22,7 @@
<Required>Y</Required>
<Constraints>
<check001>
<message>number should be unique</message>
<ValidationMessage>number should be unique</ValidationMessage>
<type>OPNsense\Base\Constraints\UniqueConstraint</type>
<addFields>
<field1>optfield</field1>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment