Added logging to IvtCustomer::create
This commit is contained in:
@@ -50,7 +50,7 @@ class IvtCustomerController extends mfBaseController {
|
||||
$ivtc->firstname = "";
|
||||
$ivtc->surname = str_replace("\r\n", " ", str_replace("\n", " ", $contact->company));
|
||||
}
|
||||
$ivtc->UID = ""; // XXX
|
||||
$ivtc->UID = $ivtc->uid; // XXX
|
||||
$ivtc->zip = $contact->zip;
|
||||
$ivtc->location = $contact->city;
|
||||
|
||||
@@ -108,6 +108,9 @@ class IvtCustomerController extends mfBaseController {
|
||||
} else {
|
||||
$return = ['status' => 'error', 'reason' => "save"];
|
||||
}
|
||||
|
||||
$this->log->debug("new IVT customer:\n".print_r($ivtc));
|
||||
|
||||
$this->returnJson($return);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user