SQL-Fehler "description is ambiguous"
authorMoritz Bunkus <m.bunkus@linet-services.de>
Thu, 16 Aug 2007 15:15:54 +0000 (15:15 +0000)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Thu, 16 Aug 2007 15:15:54 +0000 (15:15 +0000)
SL/IC.pm

index 241ba58..38a30e0 100644 (file)
--- a/SL/IC.pm
+++ b/SL/IC.pm
@@ -892,10 +892,14 @@ sub all_parts {
     }
   }
 
+  my %simple_filter_table_prefix = (
+     description  => 'p.',
+  );
+
   foreach (@simple_filters, @makemodel_filters, @invoice_oi_filters) {
     next unless $form->{$_};
     $form->{"l_$_"} = '1'; # show the column
-    push @where_tokens, "$_ ILIKE ?";
+    push @where_tokens, "$simple_filter_table_prefix{$_}$_ ILIKE ?";
     push @bind_vars,    "%$form->{$_}%";
   }