diff options
| author | Christopher Burger <burgerc@freeside.biz> | 2019-02-19 14:42:25 -0500 |
|---|---|---|
| committer | Christopher Burger <burgerc@freeside.biz> | 2019-02-22 16:04:04 -0500 |
| commit | 167a699ce4eaa68a56cd8d38a79696840ef46679 (patch) | |
| tree | 31a16e45cdb2fe9a9a8dc4b6faed4c41b8402cd1 /httemplate/edit/process/cust_main.cgi | |
| parent | 3e97c5dddd83bd5268c6f54a59d96421b3ca8fbe (diff) | |
RT# 82092 - custom fields now save and fixed so name label is displayed insted of actual field name
Diffstat (limited to 'httemplate/edit/process/cust_main.cgi')
| -rwxr-xr-x | httemplate/edit/process/cust_main.cgi | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/httemplate/edit/process/cust_main.cgi b/httemplate/edit/process/cust_main.cgi index e1a5bc6e2..baacd5e7e 100755 --- a/httemplate/edit/process/cust_main.cgi +++ b/httemplate/edit/process/cust_main.cgi @@ -97,6 +97,11 @@ my $new = new FS::cust_main ( { (map { ( "ship_$_", '' ) } (FS::cust_main->location_fields)) } ); +# add any virtual fields to the new cust_main record +foreach ($new->virtual_fields) { + $new->setfield($_, scalar($cgi->param($_))); +} + warn Dumper( $new ) if $DEBUG > 1; if ( $duplicate_of ) { |
