Code

Fixed error FAIscript (invalid attribute )
[gosa.git] / plugins / admin / systems / class_glpiManufacturer.inc
index aeedaa4d2ddc07d2098f576214f4c810be8b8359..eaaaaa94185ce06c67a40fba3494b9e1783bdd3e 100644 (file)
@@ -36,11 +36,12 @@ class glpiManufacturer extends plugin
 
   function execute()
   {
+    plugin::execute();
     $smarty  = get_smarty();
     $display = "";
 
     if((isset($_POST['remove_manu']))&&(isset($_POST['manufacturer']))){
-      $this->parent->handle->removeEnterprisesType($_POST['manufacturer']);
+      $this->parent->handle->removeEnterprise($_POST['manufacturer']);
     }
 
     if(isset($_POST['add_manu'])){
@@ -86,10 +87,10 @@ class glpiManufacturer extends plugin
 
       if($allok){
         if($this->Edit_Add == "add"){
-          $this->parent->handle->addEnterprisesType($tmp);
+          $this->parent->handle->addEnterprise($tmp);
           $this->editMode=false;
         }else{
-          $this->parent->handle->updateEnterprisesType($tmp,$this->ID);
+          $this->parent->handle->updateEnterprise($tmp,$this->ID);
           $this->editMode=false;
         }
       }
@@ -106,8 +107,8 @@ class glpiManufacturer extends plugin
     }
 
 
-    $smarty->assign("Manus",    $this->parent->handle->getEnterprisesTypes());
-    $smarty->assign("ManuKeys", array_flip($this->parent->handle->getEnterprisesTypes()));
+    $smarty->assign("Manus",    $this->parent->handle->getEnterprises());
+    $smarty->assign("ManuKeys", array_flip($this->parent->handle->getEnterprises()));
     $display.= $smarty->fetch(get_template_path('glpiManufacturer.tpl', TRUE));
     return($display);
   }