diff --git a/src/app/search/controllers/SearchController.php b/src/app/search/controllers/SearchController.php index 8d533fb3da3b2c609800aa72d95904f0f2ab2b3a..86f3b12343aba16f4eed2946ddb7828e6229f132 100644 --- a/src/app/search/controllers/SearchController.php +++ b/src/app/search/controllers/SearchController.php @@ -42,7 +42,6 @@ use Slim\Http\Request; use Slim\Http\Response; use SrcCore\controllers\AutoCompleteController; use SrcCore\controllers\PreparedClauseController; -use SrcCore\models\CoreConfigModel; use SrcCore\models\DatabaseModel; use SrcCore\models\TextFormatModel; use SrcCore\models\ValidatorModel; @@ -841,22 +840,8 @@ class SearchController ]); } if (in_array(null, $value['values'])) { - $diffListType = []; - if ($roleId == 'dest' || $roleId == 'cc' || $roleId == 'avis') { - $diffListType[] = 'entity_id'; - } - if ($roleId == 'visa' || $roleId == 'sign') { - $diffListType[] = 'VISA_CIRCUIT'; - } - if ($roleId == 'avis' || $roleId == 'avis_cc') { - $diffListType[] = 'AVIS_CIRCUIT'; - } $args['searchWhere'][] = 'res_id not in (select res_id from listinstance where item_mode = ?)'; $args['searchData'][] = $roleId; - if (!empty($diffListType)) { - $args['searchWhere'][] = 'res_id in (select res_id from listinstance where difflist_type in (?))'; - $args['searchData'][] = $diffListType; - } } if (empty($rolesMatch)) { continue;