Added logging to IvtCustomer::create

This commit is contained in:
Frank Schubert
2022-05-03 12:48:24 +02:00
parent 0c3ae34c3e
commit bc7db102ab

View File

@@ -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);
}
}