X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=plugins%2Fadmin%2Fsystems%2Fclass_glpiManufacturer.inc;h=9ae1ea8003b2c5214d303c747443f7c15d41a05b;hb=7f51b7c557fe5fb3c73b5bde15856fbfdb08efbb;hp=b021060e48575ee8db996683ac5908ed6f0e6999;hpb=435383a162d478dea687b2d4322f6f52cbfc543b;p=gosa.git diff --git a/plugins/admin/systems/class_glpiManufacturer.inc b/plugins/admin/systems/class_glpiManufacturer.inc index b021060e4..9ae1ea800 100644 --- a/plugins/admin/systems/class_glpiManufacturer.inc +++ b/plugins/admin/systems/class_glpiManufacturer.inc @@ -28,9 +28,9 @@ class glpiManufacturer extends plugin var $email =""; var $ID =-1; - function glpiManufacturer($config, $dn= NULL) + function glpiManufacturer($config, $dn= NULL, $parent= NULL) { - plugin::plugin ($config, $dn); + plugin::plugin ($config, $dn, $parent); $this->ui = get_userinfo(); } @@ -57,7 +57,7 @@ class glpiManufacturer extends plugin } print_red(sprintf(_("You can't delete this manufacturer, it is still in use by these system(s) '%s'"),$names)); }else{ - //$this->parent->handle->removeEnterprise($_POST['manufacturer']); + $this->parent->handle->removeEnterprise($_POST['manufacturer']); } } @@ -159,7 +159,7 @@ class glpiManufacturer extends plugin { foreach($this->attributes as $attr){ if(isset($_POST[$attr])){ - $this->$attr = $_POST[$attr]; + $this->$attr = stripslashes($_POST[$attr]); } } }