this helps? but this search is still royally fucked by the last changes. RT#23621
[freeside.git] / httemplate / misc / process / delete-customer.cgi
index d509a5e..1201131 100755 (executable)
@@ -28,6 +28,6 @@ if ( $cgi->param('new_custnum') ) {
 my $cust_main = qsearchs( 'cust_main', { 'custnum' => $custnum } )
   or die "Customer not found: $custnum";
 
-my $error = $cust_main->delete($new_custnum);
+my $error = $cust_main->delete('new_custnum' => $new_custnum);
 
 </%init>