From ee1f4929be6a27c9481a25819566f4106722d1ba Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 2 Nov 2006 03:50:10 +0000 Subject: [PATCH] added left joins for has many / might_have links git-svn-id: svn://svn.open-ils.org/ILS/trunk@6544 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/reports/oils_rpt_builder.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Open-ILS/web/reports/oils_rpt_builder.js b/Open-ILS/web/reports/oils_rpt_builder.js index 762398099a..16e55e8e23 100644 --- a/Open-ILS/web/reports/oils_rpt_builder.js +++ b/Open-ILS/web/reports/oils_rpt_builder.js @@ -222,8 +222,11 @@ function oilsRptBuildFromClause(path) { tobj[col] = {}; tobj = tobj[col]; - if( field.type == 'link' ) + if( field.type == 'link' ) { tobj.key = field.key; + if( field.reltype == 'has_many' || field.reltype == 'might_have' ) + tobj.type = 'left'; + } newpath = newpath + '-'+ path_col; } -- 2.11.0