projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
671846c
)
fix overage billing with multiple exports? RT#19595
author
Ivan Kohler
<ivan@freeside.biz>
Thu, 11 Oct 2012 22:57:39 +0000
(15:57 -0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Thu, 11 Oct 2012 22:57:39 +0000
(15:57 -0700)
FS/FS/part_svc.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_svc.pm
b/FS/FS/part_svc.pm
index
7f22411
..
c471771
100644
(file)
--- 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 @_;
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
}
=item part_export_usage