mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-06-28 06:58:43 +02:00
rrection Left JOin
git-svn-id: https://forge.glpi-project.org/svn/example/trunk@25 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
@ -125,9 +125,9 @@ function plugin_example_getSearchOption(){
|
||||
|
||||
function plugin_example_addLeftJoin($type,$ref_table,$new_table,$linkfield){
|
||||
switch ($new_table){
|
||||
case "glpi_droprodown_plugin_example" :
|
||||
case "glpi_dropdown_plugin_example" :
|
||||
// Standard LEFT JOIN for the example but use it for specific jointures
|
||||
return " LEFT JOIN $new_table AS ON ($rt.$linkfield = $nt.ID) ";
|
||||
return " LEFT JOIN $new_table ON ($ref_table.$linkfield = $new_table.ID) ";
|
||||
break;
|
||||
}
|
||||
return "";
|
||||
|
Reference in New Issue
Block a user