Merge branch 'develop' of github.com:cerebrate-project/cerebrate into develop
						commit
						aa23b3e293
					
				|  | @ -68,7 +68,11 @@ class LocalToolsController extends AppController | |||
|             foreach ($connections as $connection) { | ||||
|                 $actionDetails = $this->LocalTools->getActionDetails($actionName); | ||||
|                 $params['connection'] = $connection; | ||||
|                 $tmpResult = $this->LocalTools->action($this->ACL->getUser()['id'], $connection->connector, $actionName, $params, $this->request); | ||||
|                 try { | ||||
|                     $tmpResult = $this->LocalTools->action($this->ACL->getUser()['id'], $connection->connector, $actionName, $params, $this->request); | ||||
|                 } catch (\Exception $e) { | ||||
|                     $tmpResult = ['success' => false, 'message' => $e->getMessage(), 'data' => []]; | ||||
|                 } | ||||
|                 $tmpResult['connection'] = $connection; | ||||
|                 $results[$connection->id] = $tmpResult; | ||||
|                 $successes += $tmpResult['success'] ? 1 : 0; | ||||
|  |  | |||
|  | @ -819,7 +819,7 @@ class MispConnector extends CommonConnectorTools | |||
|                         [ | ||||
|                             'field' => 'connection_ids', | ||||
|                             'type' => 'hidden', | ||||
|                             'value' => $params['connection_ids'] | ||||
|                             'value' => json_encode($params['connection_ids']) | ||||
|                         ], | ||||
|                         [ | ||||
|                             'field' => 'method', | ||||
|  |  | |||
|  | @ -155,7 +155,7 @@ echo $this->element('genericElements/IndexTable/index_table', [ | |||
|             tableData | ||||
|         ) | ||||
|         const $footer = $(modalObject.ajaxApi.statusNode).parent() | ||||
|         modalObject.ajaxApi.statusNode.remove() | ||||
|         modalObject.ajaxApi.options.statusNode.remove() | ||||
|         const $cancelButton = $footer.find('button[data-dismiss="modal"]') | ||||
|         $cancelButton.text('<?= __('OK') ?>').removeClass('btn-secondary').addClass('btn-primary') | ||||
|     } | ||||
|  |  | |||
|  | @ -279,10 +279,12 @@ $(document).ready(() => { | |||
|     overloadBSDropdown(); | ||||
|     addSupportOfNestedDropdown(); | ||||
| 
 | ||||
|     const debouncedGlobalSearch = debounce(performGlobalSearch, 400) | ||||
|     $('#globalSearch') | ||||
|         .keydown(debouncedGlobalSearch) | ||||
|         .keydown(focusSearchResults); | ||||
|     if (window.debounce) { | ||||
|         const debouncedGlobalSearch = debounce(performGlobalSearch, 400) | ||||
|         $('#globalSearch') | ||||
|             .keydown(debouncedGlobalSearch) | ||||
|             .keydown(focusSearchResults); | ||||
|     } | ||||
| 
 | ||||
|     $('.lock-sidebar a.btn-lock-sidebar').click(() => { | ||||
|         const $sidebar = $('.sidebar') | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 iglocska
						iglocska