From: Moritz Bunkus Date: Thu, 16 Aug 2007 15:15:54 +0000 (+0000) Subject: SQL-Fehler "description is ambiguous" X-Git-Tag: release-2.6.0beta1~517 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;ds=inline;h=3634aa28790d3a080cf3b7878149c6c5eb62ce16;p=kivitendo-erp.git SQL-Fehler "description is ambiguous" --- diff --git a/SL/IC.pm b/SL/IC.pm index 241ba5870..38a30e008 100644 --- 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->{$_}%"; }