From 8d8b39ac675851145e4921507313fae3133f2fa0 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 10 Jun 2015 13:29:56 +0200 Subject: glpi-ocsinventoryng: missing patch --- glpi-ocsinventoryng-bug5359.patch | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 glpi-ocsinventoryng-bug5359.patch diff --git a/glpi-ocsinventoryng-bug5359.patch b/glpi-ocsinventoryng-bug5359.patch new file mode 100644 index 0000000..91edf24 --- /dev/null +++ b/glpi-ocsinventoryng-bug5359.patch @@ -0,0 +1,34 @@ +Index: trunk/front/config.form.php +=================================================================== +--- trunk/front/config.form.php (révision 523) ++++ trunk/front/config.form.php (révision 524) +@@ -47,7 +47,7 @@ + if ($plugin->isActivated("ocsinventoryng")) { + Html::header(__("Automatic synchronization's configuration", 'ocsinventoryng'), '', "tools", "pluginocsinventoryngmenu", "config"); + +- $config->showForm($_SERVER['PHP_SELF']); ++ $config->display(array('id' => 1)); + } else { + Html::header(__('Setup'), '', "tools", "pluginocsinventoryngmenu", "config"); + echo "


"; +Index: trunk/inc/config.class.php +=================================================================== +--- trunk/inc/config.class.php (révision 523) ++++ trunk/inc/config.class.php (révision 524) +@@ -41,7 +41,7 @@ + switch ($item->getType()) { + case __CLASS__ : + //If connection to the OCS DB is ok, and all rights are ok too +- return array('1' => self::getTypeName()); ++ return array('1' => __('Check OCSNG import script', 'ocsinventoryng')); + + } + } +@@ -65,6 +65,7 @@ + + $ong = array(); + $this->addDefaultFormTab($ong); ++ $this->addStandardTab(__CLASS__, $ong, $options); + return $ong; + } + -- cgit