X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_svc.pm;h=8a6633e033917ce4fbae1700772eb9e94c809728;hb=e297233dcb54d85fc9b725dfdb4760f85df7d860;hp=65a76e40026c23a1a961bdaed9cd20748ced70f9;hpb=626f5cd83480c923e7657e34fabfe1256a07e27d;p=freeside.git diff --git a/FS/FS/part_svc.pm b/FS/FS/part_svc.pm index 65a76e400..8a6633e03 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 @@ -886,7 +887,8 @@ sub _upgrade_data { #class method 'description' => $groupname, }; $error = $g->insert; - die $error if $error; + die "Error inserting new radius_group for service definition group \"$groupname\": $error" + if $error; } push @groupnums, $g->groupnum; }