update Operators ajaxLoad for new format

This commit is contained in:
Dario Rekowski on RockPI 2019-09-17 12:42:43 +00:00
parent 6f56e082e2
commit 53b2b02e97
2 changed files with 3 additions and 3 deletions

@ -1 +1 @@
Subproject commit 116e2b660676334a593658b46ead01f03a057f1e Subproject commit 6da1128ca99ba7f74877089504a4ad43247ad436

View File

@ -96,10 +96,10 @@ class OperatorsController extends AppController
public function ajaxLoad() public function ajaxLoad()
{ {
if ($this->request->is('get')) { if ($this->request->is('get')) {
$usernamePasswordHash = $this->request->getQuery('usernamePasswordHash'); $username = $this->request->getQuery('username');
$operators = $this->Operators $operators = $this->Operators
->find() ->find()
->where(['usernamePasswordHash' => $usernamePasswordHash]) ->where(['username' => $username])
->contain(['OperatorTypes']) ->contain(['OperatorTypes'])
->select(['data_base64', 'OperatorTypes.name']) ->select(['data_base64', 'OperatorTypes.name'])
->toArray(); ->toArray();