[freeside-commits] branch FREESIDE_2_3_BRANCH updated. 3036893e38a8ab39d58251ae954ea496df24db43

Ivan ivan at 420.am
Thu Oct 11 15:57:41 PDT 2012


The branch, FREESIDE_2_3_BRANCH has been updated
       via  3036893e38a8ab39d58251ae954ea496df24db43 (commit)
      from  d18a2d8fcf7dcfcc55ace0461902fa6f1c36228b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 3036893e38a8ab39d58251ae954ea496df24db43
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Thu Oct 11 15:57:40 2012 -0700

    fix overage billing with multiple exports?  RT#19595

diff --git a/FS/FS/part_svc.pm b/FS/FS/part_svc.pm
index 2f79f51..8a6633e 100644
--- a/FS/FS/part_svc.pm
+++ b/FS/FS/part_svc.pm
@@ -437,9 +437,10 @@ sub part_export {
   my $self = shift;
   my %search;
   $search{'exporttype'} = shift if @_;
-  sort { $a->weight <=> $b->weight }
-  map { qsearchs('part_export', { 'exportnum' => $_->exportnum, %search } ) }
-    qsearch('export_svc', { 'svcpart' => $self->svcpart } );
+  map { $_ } #behavior of sort undefined in scalar context
+    sort { $a->weight <=> $b->weight }
+      map { qsearchs('part_export', { 'exportnum'=>$_->exportnum, %search } ) }
+        qsearch('export_svc', { 'svcpart'=>$self->svcpart } );
 }
 
 =item part_export_usage

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/part_svc.pm |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)




More information about the freeside-commits mailing list