DirectorObjectForm: move valueIsEmpty to QuickBase
This commit is contained in:
parent
5fc16f393d
commit
b09593ff75
|
@ -1024,15 +1024,6 @@ abstract class DirectorObjectForm extends QuickForm
|
|||
return ! $this->valueIsEmpty($this->getSentOrObjectValue('object_type'));
|
||||
}
|
||||
|
||||
protected function valueIsEmpty($value)
|
||||
{
|
||||
if (is_array($value)) {
|
||||
return empty($value);
|
||||
}
|
||||
|
||||
return strlen($value) === 0;
|
||||
}
|
||||
|
||||
protected function addZoneElement()
|
||||
{
|
||||
if ($this->isTemplate()) {
|
||||
|
|
|
@ -109,6 +109,15 @@ abstract class QuickBaseForm extends Zend_Form
|
|||
return FormLoader::load($name, $module);
|
||||
}
|
||||
|
||||
protected function valueIsEmpty($value)
|
||||
{
|
||||
if (is_array($value)) {
|
||||
return empty($value);
|
||||
}
|
||||
|
||||
return strlen($value) === 0;
|
||||
}
|
||||
|
||||
public function translate($string)
|
||||
{
|
||||
if ($this->icingaModuleName === null) {
|
||||
|
|
Loading…
Reference in New Issue