projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48b79e7
)
Fix 'can't change uid' error when the account *has* a uid but svc_acct-edit_uid isn...
author
ivan
<ivan>
Thu, 13 Oct 2005 21:17:18 +0000
(21:17 +0000)
committer
ivan
<ivan>
Thu, 13 Oct 2005 21:17:18 +0000
(21:17 +0000)
FS/FS/svc_acct.pm
patch
|
blob
|
history
httemplate/edit/svc_acct.cgi
patch
|
blob
|
history
diff --git
a/FS/FS/svc_acct.pm
b/FS/FS/svc_acct.pm
index
167fcee
..
a9cdfb3
100644
(file)
--- 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
bc5d96a
..
e74d84d
100755
(executable)
--- 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' ) {
</TD>
</TR>
- <% } else { %>
-
- <INPUT TYPE="hidden" NAME="<%= $xid %>" VALUE="<%= $svc_acct->$xid() %>">
-
<% } %>
+ <INPUT TYPE="hidden" NAME="<%= $xid %>" VALUE="<%= $svc_acct->$xid() %>">
+
<% } else { %>
<TR>