mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
Advanced Search: Fix labels for starts with and contains
SVN:b1162[5531]
This commit is contained in:
@@ -661,11 +661,6 @@ class ScalarExpression extends UnaryExpression
|
||||
*/
|
||||
public function Display($oSearch, &$aArgs = null, $oAttDef = null)
|
||||
{
|
||||
if (strpos($this->m_value, '%') === 0)
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
if (!is_null($oAttDef))
|
||||
{
|
||||
if ($oAttDef->IsExternalKey())
|
||||
@@ -682,7 +677,15 @@ class ScalarExpression extends UnaryExpression
|
||||
}
|
||||
}
|
||||
|
||||
return $oAttDef->GetAsPlainText($this->m_value);
|
||||
if (!($oAttDef instanceof AttributeDateTime))
|
||||
{
|
||||
return $oAttDef->GetAsPlainText($this->m_value);
|
||||
}
|
||||
}
|
||||
|
||||
if (strpos($this->m_value, '%') === 0)
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
return $this->Render($aArgs);
|
||||
|
||||
Reference in New Issue
Block a user