From: ivan Date: Thu, 13 Oct 2005 21:17:18 +0000 (+0000) Subject: Fix 'can't change uid' error when the account *has* a uid but svc_acct-edit_uid isn... X-Git-Tag: BEFORE_FINAL_MASONIZE~360 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=591613cf1c861505335646fff3ffb4a705e011bf Fix 'can't change uid' error when the account *has* a uid but svc_acct-edit_uid isn't turned on --- diff --git a/FS/FS/svc_acct.pm b/FS/FS/svc_acct.pm index 167fcee88..a9cdfb3df 100644 --- a/FS/FS/svc_acct.pm +++ b/FS/FS/svc_acct.pm @@ -472,7 +472,8 @@ sub replace { return "Can't change $xid!" if ! $conf->exists("svc_acct-edit_$xid") - && $old->$xid() != $new->$xid(); + && $old->$xid() != $new->$xid() + && $new->cust_svc->part_svc->part_svc_column($xid)->columnflag ne 'F' } } diff --git a/httemplate/edit/svc_acct.cgi b/httemplate/edit/svc_acct.cgi index bc5d96aab..e74d84d53 100755 --- a/httemplate/edit/svc_acct.cgi +++ b/httemplate/edit/svc_acct.cgi @@ -288,12 +288,10 @@ if ( $part_svc->part_svc_column('popnum')->columnflag eq 'F' ) { - <% } else { %> - - - <% } %> + + <% } else { %>