|
|
@@ -83,14 +83,8 @@ class UpdateRessource extends CreateRessource
|
|
|
$ressource->setAttr(Ressource::ATTR_POSTAL_CODE, $this->formData['post_code']);
|
|
|
$ressource->setAttr(Ressource::ATTR_COUNTY, $this->formData['county']);
|
|
|
$ressource->setAttr(Ressource::ATTR_STATE, $this->formData['state']);
|
|
|
- $ressource->setAttr(Ressource::ATTR_AUTO, $this->formData['auto_accept']);
|
|
|
- $ressource->setAttr(Ressource::ATTR_BUSY, $this->formData['auto_busy']);
|
|
|
-
|
|
|
- foreach($this->productManager->getZimbraConfiguration() as $key => $value)
|
|
|
- {
|
|
|
- $value = $value === ProductParams::SWITCHER_ENABLED ? Zimbra::ATTR_ENABLED : Zimbra::ATTR_DISABLED;
|
|
|
- $ressource->setAttr($key, $value);
|
|
|
- }
|
|
|
+ $ressource->setAttr(Ressource::ATTR_AUTO, $this->formData['auto_accept'] == 'on' ? 'TRUE' : 'FALSE' );
|
|
|
+ $ressource->setAttr(Ressource::ATTR_BUSY, $this->formData['auto_busy'] == 'on' ? 'TRUE' : 'FALSE' );
|
|
|
|
|
|
return $ressource;
|
|
|
|