diff --git a/plugins/admin/systems/class_glpiManufacturer.inc b/plugins/admin/systems/class_glpiManufacturer.inc
index 9b92e4016babcb5f494a24d73641235ac1eabcd1..e0a9cfa9a2e3d584908dbfc00609ed0ffdb0a392 100644 (file)
class glpiManufacturer extends plugin
{
class glpiManufacturer extends plugin
{
- /* CLI vars */
- var $cli_summary= "Manage server basic objects";
- var $cli_description= "Some longer text\nfor help";
- var $cli_parameters= array("eins" => "Eins ist toll", "zwei" => "Zwei ist noch besser");
-
/* attribute list for save action */
var $ignore_account= TRUE;
var $attributes= array("name","type","address","website","phonenumber","comments","deleted","fax","email");
/* attribute list for save action */
var $ignore_account= TRUE;
var $attributes= array("name","type","address","website","phonenumber","comments","deleted","fax","email");
var $email ="";
var $ID =-1;
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();
}
$this->ui = get_userinfo();
}
{
foreach($this->attributes as $attr){
if(isset($_POST[$attr])){
{
foreach($this->attributes as $attr){
if(isset($_POST[$attr])){
- $this->$attr = $_POST[$attr];
+ $this->$attr = stripslashes($_POST[$attr]);
}
}
}
}
}
}