From: erickson Date: Thu, 2 Nov 2006 03:50:10 +0000 (+0000) Subject: added left joins for has many / might_have links X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ee1f4929be6a27c9481a25819566f4106722d1ba;p=Evergreen.git 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 --- 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; }