fix: [localTools] Fixed typos
parent
974ed02e9b
commit
f7b3e712eb
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
],
|
||||
[
|
||||
'field' => 'tool_name',
|
||||
'default' => $data['remoteTool']['toolName'],
|
||||
'default' => $data['remoteTool']['connectorName'],
|
||||
'type' => 'hidden'
|
||||
],
|
||||
],
|
||||
|
|
Loading…
Reference in New Issue