|
@@ -54,15 +54,18 @@ class ONUType extends AbstractType
|
|
|
|
|
|
$data = $event->getData();
|
|
|
|
|
|
- $clientID = $data['clientId'];
|
|
|
-
|
|
|
- if (is_array($clientID) and $this->webservice) {
|
|
|
- $clientID["disableTenancy"] = 1;
|
|
|
- $remote_data = $this->webservice->getData("client", $clientID);
|
|
|
- if (count($remote_data) === 1) {
|
|
|
- $data["clientId"] = $remote_data[0]["id"];
|
|
|
- } else {
|
|
|
- unset($data["clientId"]);
|
|
|
+ if(isset($data['clientId'])) {
|
|
|
+
|
|
|
+ $clientID = $data['clientId'];
|
|
|
+
|
|
|
+ if (is_array($clientID) and $this->webservice) {
|
|
|
+ $clientID["disableTenancy"] = 1;
|
|
|
+ $remote_data = $this->webservice->getData("client", $clientID);
|
|
|
+ if (count($remote_data) === 1) {
|
|
|
+ $data["clientId"] = $remote_data[0]["id"];
|
|
|
+ } else {
|
|
|
+ unset($data["clientId"]);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|