From a8f6e5aade7ce912873fd083c397bf1267586f31 Mon Sep 17 00:00:00 2001 From: remicollet Date: Sun, 28 Feb 2010 07:58:27 +0000 Subject: [PATCH] fix hook options git-svn-id: https://forge.glpi-project.org/svn/example/trunk@141 349b9182-4a13-0410-896f-e5e9767dd1b3 --- hook.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hook.php b/hook.php index 17135ad..a6193bb 100644 --- a/hook.php +++ b/hook.php @@ -295,10 +295,10 @@ function plugin_example_MassiveActionsProcess($data) { function plugin_example_MassiveActionsFieldsDisplay($options=array()) { //$type,$table,$field,$linkfield - if ($table == getTableForItemType($options)) { - $table = $options['options']['table']; - $field = $options['options']['field']; - $linkfield = $options['options']['linkfield']; + $table = $options['options']['table']; + $field = $options['options']['field']; + $linkfield = $options['options']['linkfield']; + if ($table == getTableForItemType($options['itemtype'])) { // Table fields switch ($table.".".$field) {