[freeside-commits] branch master updated. cb0c47fff7f412d2a8f9ae611f84584fcf8518de

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


The branch, master has been updated
       via  cb0c47fff7f412d2a8f9ae611f84584fcf8518de (commit)
      from  671846c7bee35093d62a467236dddfe4706520b3 (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 cb0c47fff7f412d2a8f9ae611f84584fcf8518de
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Thu Oct 11 15:57:39 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 7f22411..c471771 100644
--- a/FS/FS/part_svc.pm
+++ b/FS/FS/part_svc.pm
@@ -441,9 +441,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