mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
Advanced Search
Convert from raw OQL to search form widget operator SVN:b1162[5395]
This commit is contained in:
@@ -912,9 +912,26 @@ class FieldExpression extends UnaryExpression
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param $oSearch
|
||||
* @param null $aArgs
|
||||
* @param bool $bRetrofitParams
|
||||
* @param AttributeDefinition $oAttDef
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function GetCriterion($oSearch, &$aArgs = null, $bRetrofitParams = false, $oAttDef = null)
|
||||
{
|
||||
return array('ref' => $this->GetParent().'.'.$this->GetName());
|
||||
if (!is_null($oAttDef))
|
||||
{
|
||||
$sSearchType = $oAttDef->GetSearchType();
|
||||
}
|
||||
else
|
||||
{
|
||||
$sSearchType = AttributeDefinition::SEARCH_WIDGET_TYPE;
|
||||
}
|
||||
|
||||
return array('ref' => $this->GetParent().'.'.$this->GetName(), 'widget' => $sSearchType);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user