From: lpsolit%gmail.com <> Date: Fri, 16 Sep 2005 22:02:56 +0000 (+0000) Subject: Bug 308653: The error 'relation "map_products" does not exist' is returned using... X-Git-Tag: bugzilla-2.20~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3772b039fe6bf91badc3756a5f9d1e2484497e6;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 7ac64ec968..56d2846f37 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -136,11 +136,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) {