mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
parent
1953a7b0f7
commit
4597ce2836
16
library/Director/Web/Form/Element/Text.php
Normal file
16
library/Director/Web/Form/Element/Text.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace Icinga\Module\Director\Web\Form\Element;
|
||||
|
||||
use Zend_Form_Element_Text as ZfText;
|
||||
|
||||
class Text extends ZfText
|
||||
{
|
||||
public function setValue($value)
|
||||
{
|
||||
if (\is_array($value)) {
|
||||
$value = \json_encode($value);
|
||||
}
|
||||
return parent::setValue((string) $value);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user