fix: valueNotEmpty() switched to stringNotEmpty for the attribute value validation

- Core 1+2 of the new laptop
pull/3144/head
iglocska 2018-04-09 13:58:24 +02:00
parent 403f904a80
commit 025b2a4e5d
2 changed files with 4 additions and 4 deletions

View File

@ -417,8 +417,8 @@ class Attribute extends AppModel {
'message' => 'Options : Payload delivery, Antivirus detection, Payload installation, Files dropped ...'
),
'value' => array(
'valueNotEmpty' => array(
'rule' => array('valueNotEmpty'),
'stringNotEmpty' => array(
'rule' => array('stringNotEmpty'),
),
'userdefined' => array(
'rule' => array('validateAttributeValue'),

View File

@ -102,8 +102,8 @@ class ShadowAttribute extends AppModel {
),
),
'value' => array(
'valueNotEmpty' => array(
'rule' => array('valueNotEmpty'),
'stringNotEmpty' => array(
'rule' => array('stringNotEmpty'),
),
'userdefined' => array(
'rule' => array('validateAttributeValue'),