fix hook options

git-svn-id: https://forge.glpi-project.org/svn/example/trunk@141 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
remicollet 2010-02-28 07:58:27 +00:00
parent 4f57c9b397
commit a8f6e5aade

View File

@ -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) {