diff --git a/plugins/admin/systems/class_glpiManufacturer.inc b/plugins/admin/systems/class_glpiManufacturer.inc
index aeedaa4d2ddc07d2098f576214f4c810be8b8359..eaaaaa94185ce06c67a40fba3494b9e1783bdd3e 100644 (file)
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'])){
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;
}
}
}
- $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);
}