|
|
@@ -96,14 +96,14 @@ class CreateRessource extends ApiService
|
|
|
$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']);
|
|
|
+ $ressource->setAttr(Ressource::ATTR_AUTO, $this->formData['auto_accept'] == 'on' ? TRUE : FALSE );
|
|
|
+ $ressource->setAttr(Ressource::ATTR_BUSY, $this->formData['auto_busy'] == 'on' ? TRUE : FALSE );
|
|
|
|
|
|
- foreach($this->productManager->getZimbraConfiguration() as $key => $value)
|
|
|
+/* foreach($this->productManager->getZimbraConfiguration() as $key => $value)
|
|
|
{
|
|
|
$value = $value === ProductParams::SWITCHER_ENABLED ? Zimbra::ATTR_ENABLED : Zimbra::ATTR_DISABLED;
|
|
|
$ressource->setAttr($key, $value);
|
|
|
- }
|
|
|
+ } */
|
|
|
|
|
|
return $ressource;
|
|
|
}
|