diff --git a/include/simpleplugin/class_Attribute.inc b/include/simpleplugin/class_Attribute.inc index 516807ebdb4593b07b83af21d6f6e89c41b3800c..8fc693d3710bce9a9e473535bc63a8ce46c33b06 100644 --- a/include/simpleplugin/class_Attribute.inc +++ b/include/simpleplugin/class_Attribute.inc @@ -488,7 +488,10 @@ class Attribute global $config; $currentValue = $this->getValue(); if ($this->isRequired() && !$this->disabled && (($currentValue === "") || ($currentValue === []))) { - return msgPool::required($this->getLabel()); + return new SimplePluginCheckError( + $this, + msgPool::required($this->getLabel()) + ); } elseif (($this->unique !== FALSE) && !$this->disabled) { $ldapValue = $this->computeLdapValue(); if (($ldapValue === "") || ($ldapValue === [])) {