summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authormark <mark>2010-09-29 00:38:08 +0000
committermark <mark>2010-09-29 00:38:08 +0000
commit8c7cc8814104fd6812477a476a2ed717c46d9417 (patch)
tree55beb17c8708fdc3da29169dd02c67b0be92f114 /httemplate
parente478bc4589a34d49ec01cfbc9a3be4d972d3c849 (diff)
avoid wiping signupdate when editing cust_main, RT#9972
Diffstat (limited to 'httemplate')
-rwxr-xr-xhttemplate/edit/process/cust_main.cgi5
1 files changed, 5 insertions, 0 deletions
diff --git a/httemplate/edit/process/cust_main.cgi b/httemplate/edit/process/cust_main.cgi
index e2238bd..24cecea 100755
--- a/httemplate/edit/process/cust_main.cgi
+++ b/httemplate/edit/process/cust_main.cgi
@@ -251,6 +251,11 @@ if ( $new->custnum eq '' ) {
$new->payinfo($new_account.'@'.$new_aba);
}
+ if ( ! $conf->exists('cust_main-edit_signupdate') or
+ ! $new->signupdate ) {
+ $new->signupdate($old->signupdate);
+ }
+
warn "$me calling $new -> replace( $old, \ @invoicing_list )" if $DEBUG;
local($FS::cust_main::DEBUG) = $DEBUG if $DEBUG;
local($FS::Record::DEBUG) = $DEBUG if $DEBUG;