diff --git a/src/Controller/StateUsersController.php b/src/Controller/StateUsersController.php index 01b306afa..c960bc05c 100644 --- a/src/Controller/StateUsersController.php +++ b/src/Controller/StateUsersController.php @@ -505,9 +505,9 @@ class StateUsersController extends AppController } $this->Flash->error(__('The state user could not be saved. Please, try again.')); } - $indices = $this->StateUsers->Indices->find('list', ['limit' => 200]); + $stateGroups = $this->StateUsers->StateGroups->find('list', ['limit' => 200]); - $this->set(compact('stateUser', 'indices', 'stateGroups')); + $this->set(compact('stateUser', 'stateGroups')); } /** diff --git a/src/Controller/TransactionCreationsController.php b/src/Controller/TransactionCreationsController.php index 49c23ef5b..31fc407d4 100644 --- a/src/Controller/TransactionCreationsController.php +++ b/src/Controller/TransactionCreationsController.php @@ -266,6 +266,7 @@ class TransactionCreationsController extends AppController ->find('all') ->select(['id', 'first_name', 'last_name', 'email']) //->order(['id']) + ->where(['disabled' => 0]) ->order(['first_name', 'last_name']) ->contain(['TransactionCreations' => [ 'fields' => [ diff --git a/src/Template/StateUsers/edit.ctp b/src/Template/StateUsers/edit.ctp index a959cf040..473f1d845 100644 --- a/src/Template/StateUsers/edit.ctp +++ b/src/Template/StateUsers/edit.ctp @@ -31,8 +31,7 @@
Form->control('index_id'); - echo $this->Form->control('state_group_id', ['options' => $stateGroups]); + echo $this->Form->control('disabled'); ?>
Form->button(__('Submit')) ?> diff --git a/src/Template/StateUsers/index.ctp b/src/Template/StateUsers/index.ctp index ef7057612..4e6ea8cb1 100644 --- a/src/Template/StateUsers/index.ctp +++ b/src/Template/StateUsers/index.ctp @@ -32,6 +32,7 @@ Paginator->sort('last_name') ?> Paginator->sort('username') ?> Paginator->sort('email') ?> + Paginator->sort('disabled') ?> @@ -45,6 +46,7 @@ last_name ?> username ?> email ?> + disabled ?> Html->link(__('View'), ['action' => 'view', $stateUser->id]) ?> Html->link(__('Edit'), ['action' => 'edit', $stateUser->id]) ?>