diff options
Diffstat (limited to 'LedgerSMB')
-rw-r--r-- | LedgerSMB/Batch.pm | 5 |
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}; |