Skip to content

Commit

Permalink
#3149 - Sorting for adv search more - fix
Browse files Browse the repository at this point in the history
  • Loading branch information
romanlesnikov committed Mar 21, 2022
1 parent cb4b385 commit 65c7722
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/base/general/classes/BxBaseModGeneralModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -412,11 +412,11 @@ public function serviceGetSortableFieldsExtended($aInputsAdd = array())
}
}

if(!empty($CNF['FIELD_ADDED'])){
if(!empty($CNF['FIELD_ADDED']) && isset($aInputsAll[$CNF['FIELD_ADDED']])){
$aSortableFields[] = $CNF['FIELD_ADDED'];
}

if(!empty($CNF['FIELD_CHANGED'])){
if(!empty($CNF['FIELD_CHANGED']) && isset($aInputsAll[$CNF['FIELD_CHANGED']])){
$aSortableFields[] = $CNF['FIELD_CHANGED'];
}

Expand Down

0 comments on commit 65c7722

Please sign in to comment.