From 781db85ba18f8055811752c8838dba1ded3bc15c Mon Sep 17 00:00:00 2001 From: einhverfr Date: Fri, 22 Aug 2008 20:32:30 +0000 Subject: Correctig issue on Firefox 3 with searching for batches using the 'Any' option git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2300 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/Batch.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'LedgerSMB') diff --git a/LedgerSMB/Batch.pm b/LedgerSMB/Batch.pm index 7d25fffa..8c4e397b 100644 --- a/LedgerSMB/Batch.pm +++ b/LedgerSMB/Batch.pm @@ -33,7 +33,7 @@ sub get_search_criteria { @{$self->{batch_users}} = $self->exec_method( funcname => 'batch_get_users' ); - unshift @{$self->{batch_users}}, {username => $self->{_locale}->text('Any'), id => '0', entity_id => ''}; + unshift @{$self->{batch_users}}, {username => $self->{_locale}->text('Any'), id => '0', entity_id => '0'}; } sub get_search_results { @@ -43,6 +43,9 @@ sub get_search_results { } else { $search_proc = "batch_search"; } + if ($self->{created_by_eid} == 0){ + delete $self->{created_by_eid}; + } if ($args->{custom_types}->{$self->{class_id}}->{select_method}){ $search_proc = $args->{custom_types}->{$self->{class_id}}->{select_method}; -- cgit v1.2.3