Cancel services in a particular order to get around certain inter-service dependancies
[freeside.git] / FS / FS / svc_domain.pm
index c88b3e6..4dd6342 100644 (file)
@@ -256,6 +256,8 @@ sub replace {
   return "Can't change domain - reorder."
     if $old->getfield('domain') ne $new->getfield('domain'); 
 
+  # Better to do it here than to force the caller to remember that svc_domain is weird.
+  $new->setfield(action => 'M');
   my $error = $new->SUPER::replace($old);
   return $error if $error;
 }