summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2012-12-12 16:20:12 -0800
committerMark Wells <mark@freeside.biz>2012-12-12 16:20:12 -0800
commita2d6022f3d7f402c14ce3c2f1983875f86e96027 (patch)
tree632f64abab6efd46dd726f67f4e077908b71190f
parented8a2367e78d208891e63d7e624e6bdc44ea318f (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 ac97eab58..544c7e958 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,