fix: [localTools] Fixed typos

pull/59/head
mokaddem 2021-06-16 09:47:26 +02:00
parent 974ed02e9b
commit f7b3e712eb
3 changed files with 5 additions and 5 deletions

View File

@ -186,7 +186,7 @@ class LocalToolsController extends AppController
},
'afterFind' => function($data) {
foreach ($data as $connector) {
$connectorById = $this->LocalTools->getConnectorByConnectionId($connector['id'])
$connectorById = $this->LocalTools->getConnectorByConnectionId($connector['id']);
$className = array_keys($connectorById)[0];
$connector['connectorName'] = $className;
}

View File

@ -11,10 +11,10 @@ class Inbox extends AppModel
protected function _getLocalToolConnectorName()
{
$localToolName = null;
$localConnectorName = null;
if (!empty($this->data) && !empty($this->data['connectorName'])) {
$localToolName = $this->data['connectorName'];
$localConnectorName = $this->data['connectorName'];
}
return $localToolName;
return $localConnectorName;
}
}

View File

@ -19,7 +19,7 @@
],
[
'field' => 'tool_name',
'default' => $data['remoteTool']['toolName'],
'default' => $data['remoteTool']['connectorName'],
'type' => 'hidden'
],
],