summaryrefslogtreecommitdiff
path: root/FS/FS/part_svc.pm
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2013-03-18 19:33:34 -0700
committerMark Wells <mark@freeside.biz>2013-03-18 19:33:34 -0700
commitc2e126583354b58ef54ffa7f580b115b8eed1dd3 (patch)
tree0e0c25a9e8ccff3085b6caf55408f8c383720471 /FS/FS/part_svc.pm
parent04f99991071acf5c390ea4d52db37798543ff9d8 (diff)
multiple inventory classes for service columns, #21442
Diffstat (limited to 'FS/FS/part_svc.pm')
-rw-r--r--FS/FS/part_svc.pm8
1 files changed, 3 insertions, 5 deletions
diff --git a/FS/FS/part_svc.pm b/FS/FS/part_svc.pm
index 6ca4889..da794dd 100644
--- a/FS/FS/part_svc.pm
+++ b/FS/FS/part_svc.pm
@@ -757,11 +757,9 @@ sub process {
if ( $flag =~ /^[MAH]$/ ) {
$param->{ $f } = delete( $param->{ $f.'_classnum' } );
}
- if ( $flag =~ /^S$/
- or $_ eq 'usergroup' ) {
- $param->{ $f } = ref($param->{ $f })
- ? join(',', @{$param->{ $f }} )
- : $param->{ $f };
+ if ( ( $flag =~ /^[MAHS]$/ or $_ eq 'usergroup' )
+ and ref($param->{ $f }) ) {
+ $param->{ $f } = join(',', @{ $param->{ $f } });
}
( $f, $f.'_flag', $f.'_label' );
}