mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-05-04 18:08:42 +02:00
[example] correction recherche
git-svn-id: https://forge.glpi-project.org/svn/example/trunk@34 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
parent
688f643140
commit
f5de10158c
@ -151,7 +151,7 @@ function plugin_example_getDropdown(){
|
|||||||
|
|
||||||
// Define search option for types of the plugins
|
// Define search option for types of the plugins
|
||||||
function plugin_example_getSearchOption(){
|
function plugin_example_getSearchOption(){
|
||||||
global $LANGEXAMPLE;
|
global $LANGEXAMPLE,$LANG;
|
||||||
$sopt=array();
|
$sopt=array();
|
||||||
|
|
||||||
// Part header
|
// Part header
|
||||||
@ -172,6 +172,11 @@ function plugin_example_getSearchOption(){
|
|||||||
$sopt[PLUGIN_EXAMPLE_TYPE][3]['linkfield']='serial';
|
$sopt[PLUGIN_EXAMPLE_TYPE][3]['linkfield']='serial';
|
||||||
$sopt[PLUGIN_EXAMPLE_TYPE][3]['name']='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;
|
return $sopt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user