From bc7db102abcd39f42290f1282dfbc29c09b55f53 Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Tue, 3 May 2022 12:48:24 +0200 Subject: [PATCH] Added logging to IvtCustomer::create --- application/IvtCustomer/IvtCustomerController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/application/IvtCustomer/IvtCustomerController.php b/application/IvtCustomer/IvtCustomerController.php index 7f260bd32..b2ec99c4d 100644 --- a/application/IvtCustomer/IvtCustomerController.php +++ b/application/IvtCustomer/IvtCustomerController.php @@ -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); } } \ No newline at end of file