Enable smartblocks with same criteria to stay separate if created with new criteria
This commit is contained in:
parent
2b057472ca
commit
8095f6e627
1 changed files with 3 additions and 0 deletions
|
@ -1641,9 +1641,12 @@ SQL;
|
|||
Logging::info('adding and');
|
||||
$qry->addAnd($spCriteria, $spCriteriaValue, $spCriteriaModifier);
|
||||
}
|
||||
// only add this NOT LIKE null if you aren't also matching on another criteria
|
||||
if ($i == 0) {
|
||||
if ($spCriteriaModifier == Criteria::NOT_ILIKE || $spCriteriaModifier == Criteria::NOT_EQUAL) {
|
||||
$qry->addOr($spCriteria, null, Criteria::ISNULL);
|
||||
}
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
Logging::info($e);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue