mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-05-04 18:08:42 +02:00
pass 'searchtype' to addWhere hook
git-svn-id: https://forge.glpi-project.org/svn/example/trunk@191 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
parent
622ff0617d
commit
1daf2a0372
4
hook.php
4
hook.php
@ -180,7 +180,7 @@ function plugin_example_forceGroupBy($type) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function plugin_example_addWhere($link,$nott,$type,$ID,$val) {
|
function plugin_example_addWhere($link, $nott, $type, $ID, $val, $searchtype) {
|
||||||
|
|
||||||
$searchopt = &Search::getOptions($type);
|
$searchopt = &Search::getOptions($type);
|
||||||
$table = $searchopt[$ID]["table"];
|
$table = $searchopt[$ID]["table"];
|
||||||
@ -359,7 +359,7 @@ function plugin_example_MassiveActionsProcess($data) {
|
|||||||
return array('ok' => $ok,
|
return array('ok' => $ok,
|
||||||
'ko' => $ko,
|
'ko' => $ko,
|
||||||
'noright' => $noright);
|
'noright' => $noright);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user