[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[2300] trunk/LedgerSMB/Batch.pm



Revision: 2300
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=2300&view=rev
Author:   einhverfr
Date:     2008-08-22 20:32:30 +0000 (Fri, 22 Aug 2008)

Log Message:
-----------
Correctig issue on Firefox 3 with searching for batches using the 'Any' option

Modified Paths:
--------------
    trunk/LedgerSMB/Batch.pm

Modified: trunk/LedgerSMB/Batch.pm
===================================================================
--- trunk/LedgerSMB/Batch.pm	2008-08-22 05:28:47 UTC (rev 2299)
+++ trunk/LedgerSMB/Batch.pm	2008-08-22 20:32:30 UTC (rev 2300)
@@ -33,7 +33,7 @@
     @{$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 @@
     } 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}; 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.