Skip to content

Commit

Permalink
Revert "data bug 784 fixed"
Browse files Browse the repository at this point in the history
This reverts commit 47dac06.
  • Loading branch information
mvorisek committed Nov 19, 2021
1 parent 6bad1f5 commit bc2102c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/RoleAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ public function setModel(Model $role, array $fields = null): void
Header::addTo($v, [$role->getTitle() . ' Permissions']);

$crud = Crud::addTo($v);
$crud->setModel($role->ref('AccessRules'));
//$crud->setModel($role->ref('AccessRules')); // this way it adds wrong table alias in field condition - ATK bug (withTitle + table_alias)
$crud->setModel((new AccessRule($role->persistence))->addCondition('role_id', $id));

$crud->onFormAddEdit(function ($f) {
// @todo - these lines below don't work. One reason is that there is no rule isNotChecked :) but still not sure it works
Expand Down

0 comments on commit bc2102c

Please sign in to comment.