From 53b2b02e97fc4c8cd9c418c318b68626b7382ebf Mon Sep 17 00:00:00 2001 From: Dario Rekowski on RockPI Date: Tue, 17 Sep 2019 12:42:43 +0000 Subject: [PATCH] update Operators ajaxLoad for new format --- mithril_client | 2 +- src/Controller/OperatorsController.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mithril_client b/mithril_client index 116e2b660..6da1128ca 160000 --- a/mithril_client +++ b/mithril_client @@ -1 +1 @@ -Subproject commit 116e2b660676334a593658b46ead01f03a057f1e +Subproject commit 6da1128ca99ba7f74877089504a4ad43247ad436 diff --git a/src/Controller/OperatorsController.php b/src/Controller/OperatorsController.php index 523df13a3..f0da6cf64 100644 --- a/src/Controller/OperatorsController.php +++ b/src/Controller/OperatorsController.php @@ -96,10 +96,10 @@ class OperatorsController extends AppController public function ajaxLoad() { if ($this->request->is('get')) { - $usernamePasswordHash = $this->request->getQuery('usernamePasswordHash'); + $username = $this->request->getQuery('username'); $operators = $this->Operators ->find() - ->where(['usernamePasswordHash' => $usernamePasswordHash]) + ->where(['username' => $username]) ->contain(['OperatorTypes']) ->select(['data_base64', 'OperatorTypes.name']) ->toArray();