From 300bd572d3d21bbde1e91e8682611ad224992a7a Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Thu, 1 Oct 2009 16:32:47 +0200 Subject: [PATCH] SQLHelper Adding tablename to filters output --- C4/SQLHelper.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/SQLHelper.pm b/C4/SQLHelper.pm index 20d9520403..e1eea3967a 100644 --- a/C4/SQLHelper.pm +++ b/C4/SQLHelper.pm @@ -344,7 +344,7 @@ sub _filter_hash{ foreach my $field (grep {/\b($elements)\b/} keys %$filter_input){ ## supposed to be a hash of simple values, hashes of arrays could be implemented $$filter_input{$field}=format_date_in_iso($$filter_input{$field}) if ($$columns{$field}{Type}=~/date/ && $$filter_input{$field} !~C4::Dates->regexp("iso")); - my ($tmpkeys, $localvalues)=_Process_Operands($$filter_input{$field},$field,$searchtype,$columns); + my ($tmpkeys, $localvalues)=_Process_Operands($$filter_input{$field},"$tablename.$field",$searchtype,$columns); if (@$tmpkeys){ push @values, @$localvalues; push @keys, @$tmpkeys; @@ -368,7 +368,7 @@ sub _filter_string{ my @localkeys; foreach my $operand (@operands){ foreach my $field (@columns_filtered){ - my ($tmpkeys, $localvalues)=_Process_Operands($operand,$field,$searchtype,$columns); + my ($tmpkeys, $localvalues)=_Process_Operands($operand,"$tablename.$field",$searchtype,$columns); if ($tmpkeys){ push @values,@$localvalues; push @localkeys,@$tmpkeys; -- 2.39.5