Просмотр исходного кода

Bugfix: add switcher for auto_accept & auto_decline

andre 2 лет назад
Родитель
Сommit
b84ffbdbf9
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      app/Libs/Zimbra/Components/Api/Soap/Services/Create/CreateRessource.php

+ 4 - 4
app/Libs/Zimbra/Components/Api/Soap/Services/Create/CreateRessource.php

@@ -96,14 +96,14 @@ class CreateRessource extends ApiService
         $ressource->setAttr(Ressource::ATTR_POSTAL_CODE, $this->formData['post_code']);
         $ressource->setAttr(Ressource::ATTR_POSTAL_CODE, $this->formData['post_code']);
         $ressource->setAttr(Ressource::ATTR_COUNTY, $this->formData['county']);
         $ressource->setAttr(Ressource::ATTR_COUNTY, $this->formData['county']);
         $ressource->setAttr(Ressource::ATTR_STATE, $this->formData['state']);
         $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;
             $value = $value === ProductParams::SWITCHER_ENABLED ? Zimbra::ATTR_ENABLED : Zimbra::ATTR_DISABLED;
             $ressource->setAttr($key, $value);
             $ressource->setAttr($key, $value);
-        }
+        } */
 
 
         return $ressource;
         return $ressource;
     }
     }