mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-01 14:38:47 +02:00
N°2191 - Stopwatch sub-items no more available as search criteria
This commit is contained in:
@@ -387,7 +387,7 @@ class SearchForm
|
||||
|
||||
foreach($aAttributeDefs as $sAttCode => $oAttDef)
|
||||
{
|
||||
if ($this->IsSubAttribute($oAttDef)) continue;
|
||||
if ($oAttDef instanceof AttributeFriendlyName) continue; //it was already forced into $aZList in the code above
|
||||
|
||||
$bHasIndex = isset($aIndexes[$sAttCode]);
|
||||
$aOthers = $this->AppendField($sClass, $sAlias, $sAttCode, $oAttDef, $aOthers, $bHasIndex);
|
||||
@@ -414,10 +414,6 @@ class SearchForm
|
||||
return $aDBIndexes;
|
||||
}
|
||||
|
||||
protected function IsSubAttribute($oAttDef)
|
||||
{
|
||||
return (($oAttDef instanceof AttributeFriendlyName) || ($oAttDef instanceof AttributeSubItem));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \AttributeDefinition $oAttrDef
|
||||
|
||||
Reference in New Issue
Block a user