From 1417b81d1d0b7f2898bdb806d0ada883ec0e52c1 Mon Sep 17 00:00:00 2001 From: Damien <damien.burel@maarch.org> Date: Tue, 19 Mar 2019 17:56:31 +0100 Subject: [PATCH] FEAT #9685 ListInstance Controller fix 2 --- src/app/entity/controllers/ListInstanceController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/entity/controllers/ListInstanceController.php b/src/app/entity/controllers/ListInstanceController.php index e2ed9aed2bf..f4b363c3717 100755 --- a/src/app/entity/controllers/ListInstanceController.php +++ b/src/app/entity/controllers/ListInstanceController.php @@ -169,7 +169,7 @@ class ListInstanceController $set = ['dest_user' => $instance['item_id']]; $changeDestination = true; $entities = UserEntityModel::get(['select' => ['entity_id', 'primary_entity'], 'where' => ['user_id = ?'], 'data' => [$instance['item_id']]]); - $resource = ResModel::getById(['select' => ['destination'], 'resId' => $ListInstanceByRes['res_id']]); + $resource = ResModel::getById(['select' => ['destination'], 'resId' => $ListInstanceByRes['resId']]); foreach ($entities as $entity) { if ($entity['entity_id'] == $resource['destination']) { $changeDestination = false; -- GitLab