Skip to content
Snippets Groups Projects
Verified Commit 1417b81d authored by Damien's avatar Damien
Browse files

FEAT #9685 ListInstance Controller fix 2

parent a35546c4
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment