summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2008-08-22 20:32:30 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2008-08-22 20:32:30 +0000
commit781db85ba18f8055811752c8838dba1ded3bc15c (patch)
tree96b36ae8d22da93fca8dd995d786a4b28d359f67 /LedgerSMB
parent3e05015f9995f2f11556be0f8b6a73051d7d7def (diff)
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
Diffstat (limited to 'LedgerSMB')
-rw-r--r--LedgerSMB/Batch.pm5
1 files changed, 4 insertions, 1 deletions
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};