From 025b2a4e5daffe805f3ae41e87d3f1e9c367805d Mon Sep 17 00:00:00 2001 From: iglocska Date: Mon, 9 Apr 2018 13:58:24 +0200 Subject: [PATCH] fix: valueNotEmpty() switched to stringNotEmpty for the attribute value validation - Core 1+2 of the new laptop --- app/Model/Attribute.php | 4 ++-- app/Model/ShadowAttribute.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Model/Attribute.php b/app/Model/Attribute.php index 33d018f60..04d1812da 100644 --- a/app/Model/Attribute.php +++ b/app/Model/Attribute.php @@ -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'), diff --git a/app/Model/ShadowAttribute.php b/app/Model/ShadowAttribute.php index 4ccab111f..9fcafbfb9 100644 --- a/app/Model/ShadowAttribute.php +++ b/app/Model/ShadowAttribute.php @@ -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'),