From: lpsolit%gmail.com <> Date: Fri, 16 Sep 2005 21:57:00 +0000 (+0000) Subject: Bug 308653: The error 'relation "map_products" does not exist' is returned using... X-Git-Tag: bugzilla-2.21.1~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f3084922bfe7cb8759fe4064c46311385fa23f0;p=thirdparty%2Fbugzilla.git Bug 308653: The error 'relation "map_products" does not exist' is returned using PostgreSQL when the classification column is displayed - Patch by Frédéric Buclin r=mkanat a=justdave --- diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index 55113f641f..fc66d7f241 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -139,11 +139,11 @@ sub init { } if (lsearch($fieldsref, 'map_classifications.name') >= 0) { + push @supptables, "INNER JOIN products AS map_products " . + "ON bugs.product_id = map_products.id"; push @supptables, "INNER JOIN classifications AS map_classifications " . "ON map_products.classification_id = map_classifications.id"; - push @supptables, "INNER JOIN products AS map_products " . - "ON bugs.product_id = map_products.id"; } if (lsearch($fieldsref, 'map_components.name') >= 0) {