summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2012-12-12 15:15:55 -0800
committerMark Wells <mark@freeside.biz>2012-12-12 15:15:55 -0800
commit3d8f79a5a75356f4ce36b8e91c769d72447d74ba (patch)
tree43c18fced6053f8f77e9357d0cb462ad892cffdd
parent84f2df8931fa02e63fb21f8f0bb87dd9577b8919 (diff)
fix svcpart changes when usergroup is a fixed field, #20458
-rw-r--r--FS/FS/svc_Radius_Mixin.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/FS/FS/svc_Radius_Mixin.pm b/FS/FS/svc_Radius_Mixin.pm
index ac97eab..544c7e9 100644
--- a/FS/FS/svc_Radius_Mixin.pm
+++ b/FS/FS/svc_Radius_Mixin.pm
@@ -68,7 +68,8 @@ sub replace {
$old->usergroup; # make sure this is cached for exports
- my $error = $new->process_m2m(
+ my $error = $new->check # make sure fixed fields are set before process_m2m
+ || $new->process_m2m(
'link_table' => 'radius_usergroup',
'target_table' => 'radius_group',
'params' => $new->usergroup,