Advanced Search: Fix shortcut menu with sub-classes

SVN:b1162[5470]
This commit is contained in:
Eric Espié
2018-03-20 14:12:16 +00:00
parent 1b80789288
commit 1301aa5c35
4 changed files with 45 additions and 16 deletions

View File

@@ -122,6 +122,10 @@ class CriterionToOQL extends CriterionConversionAbstract
protected static function EmptyToOql($sRef, $aCriteria)
{
if ($aCriteria['widget'] == AttributeDefinition::SEARCH_WIDGET_TYPE_NUMERIC)
{
return "ISNULL({$sRef})";
}
return "({$sRef} = '')";
}