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

FEAT #9685 Only dest fix 2

parent 5c072add
No related branches found
No related tags found
No related merge requests found
......@@ -243,11 +243,8 @@ class ActionMethodController
$listInstances = [];
if (!empty($args['data']['onlyRedirectDest'])) {
$listInstances = ListInstanceModel::get(['select' => ['*'], 'where' => ['res_id = ?', 'difflist_type = ?', 'item_mode != ?'], 'data' => [$args['resId'], 'entity_id', 'dest']]);
foreach ($args['data']['listInstances'] as $key => $listInstance) {
if ($listInstance['item_mode'] != 'dest') {
unset($args['data']['listInstances'][$key]);
}
if (count($args['data']['listInstances']) == 1) {
$listInstances = ListInstanceModel::get(['select' => ['*'], 'where' => ['res_id = ?', 'difflist_type = ?', 'item_mode != ?'], 'data' => [$args['resId'], 'entity_id', 'dest']]);
}
}
......
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