summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormark <mark>2010-09-29 00:38:17 +0000
committermark <mark>2010-09-29 00:38:17 +0000
commit678b51d93455d0ef2d9334ef1562243d76bd4d12 (patch)
tree4c1b4d5b0e2547a653b424ff095df0743ded153c
parent4f6a747e8dc47310fcab3619eb541b9d5ba6dbed (diff)
avoid wiping signupdate when editing cust_main, RT#9972
-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 3158d7bbf..ee14518ed 100755
--- a/httemplate/edit/process/cust_main.cgi
+++ b/httemplate/edit/process/cust_main.cgi
@@ -247,6 +247,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;