mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-05-04 18:08:42 +02:00
giveitem correction
git-svn-id: https://forge.glpi-project.org/svn/example/trunk@99 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
parent
254646ecec
commit
07b2fbd88f
8
hook.php
8
hook.php
@ -135,10 +135,12 @@ function plugin_example_getAddSearchOptions($itemtype){
|
||||
}
|
||||
|
||||
function plugin_example_giveItem($type,$ID,$data,$num){
|
||||
global $CFG_GLPI, $INFOFORM_PAGES,$SEARCH_OPTION;
|
||||
global $CFG_GLPI, $INFOFORM_PAGES;
|
||||
|
||||
$table=$SEARCH_OPTION[$type][$ID]["table"];
|
||||
$field=$SEARCH_OPTION[$type][$ID]["field"];
|
||||
$searchopt=getSearchOptions($type);
|
||||
|
||||
$table=$searchopt[$ID]["table"];
|
||||
$field=$searchopt[$ID]["field"];
|
||||
|
||||
switch ($table.'.'.$field){
|
||||
case "glpi_plugin_example.name" :
|
||||
|
Loading…
x
Reference in New Issue
Block a user