]> 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 22:02:56 +0000 (22:02 +0000)
committerlpsolit%gmail.com <>
Fri, 16 Sep 2005 22:02:56 +0000 (22:02 +0000)
Bugzilla/Search.pm

index 7ac64ec968f2681cf3f3151e92682c4573e97836..56d2846f37c176e27d2a69ff9a05efe99f0754d1 100644 (file)
@@ -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) {