]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 308653: The error 'relation "map_products" does not exist' is returned using...
authorlpsolit%gmail.com <>
Fri, 16 Sep 2005 21:57:00 +0000 (21:57 +0000)
committerlpsolit%gmail.com <>
Fri, 16 Sep 2005 21:57:00 +0000 (21:57 +0000)
Bugzilla/Search.pm

index 55113f641f1d2ff562dc0db978a365693b38a5c0..fc66d7f2413cbbaecd7e503df42d2947ed68acf9 100644 (file)
@@ -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) {