mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
Advanced search improvements (restore 2018-04-10 revisions : r5643..r5645)
* Support for empty dates * UNION OQLs don't crash the search * Better support for 'not empty' searches SVN:trunk[5634]
This commit is contained in:
@@ -1024,7 +1024,14 @@ class FieldExpression extends UnaryExpression
|
||||
*/
|
||||
public function GetCriterion($oSearch, &$aArgs = null, $bRetrofitParams = false, $oAttDef = null)
|
||||
{
|
||||
$oAttDef = $this->GetAttDef($oSearch->GetJoinedClasses());
|
||||
if (method_exists($oSearch, 'GetJoinedClasses'))
|
||||
{
|
||||
$oAttDef = $this->GetAttDef($oSearch->GetJoinedClasses());
|
||||
}
|
||||
else
|
||||
{
|
||||
$oAttDef = $this->GetAttDef($oSearch->GetSelectedClasses());
|
||||
}
|
||||
if (!is_null($oAttDef))
|
||||
{
|
||||
$sSearchType = $oAttDef->GetSearchType();
|
||||
|
||||
Reference in New Issue
Block a user