From f5de10158cb3752fe0d1f85108a3ddeecbcda949 Mon Sep 17 00:00:00 2001 From: tsmr Date: Tue, 9 Oct 2007 22:19:05 +0000 Subject: [PATCH] [example] correction recherche git-svn-id: https://forge.glpi-project.org/svn/example/trunk@34 349b9182-4a13-0410-896f-e5e9767dd1b3 --- setup.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/setup.php b/setup.php index 6312707..8553ad4 100755 --- a/setup.php +++ b/setup.php @@ -151,7 +151,7 @@ function plugin_example_getDropdown(){ // Define search option for types of the plugins function plugin_example_getSearchOption(){ - global $LANGEXAMPLE; + global $LANGEXAMPLE,$LANG; $sopt=array(); // Part header @@ -172,6 +172,11 @@ function plugin_example_getSearchOption(){ $sopt[PLUGIN_EXAMPLE_TYPE][3]['linkfield']='serial'; $sopt[PLUGIN_EXAMPLE_TYPE][3]['name']='Serial'; + $sopt[PLUGIN_EXAMPLE_TYPE][30]['table']='glpi_plugin_example'; + $sopt[PLUGIN_EXAMPLE_TYPE][30]['field']='ID'; + $sopt[PLUGIN_EXAMPLE_TYPE][30]['linkfield']='ID'; + $sopt[PLUGIN_EXAMPLE_TYPE][30]['name']=$LANG["common"][2]; + return $sopt; }