mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
N°985 - Add applicable contexts on Trigger (search)
This commit is contained in:
@@ -25,9 +25,9 @@ namespace Combodo\iTop\Application\Search;
|
||||
|
||||
use ApplicationContext;
|
||||
use AttributeDefinition;
|
||||
use AttributeEnumSet;
|
||||
use AttributeExternalField;
|
||||
use AttributeFriendlyName;
|
||||
use AttributeSubItem;
|
||||
use AttributeTagSet;
|
||||
use CMDBObjectSet;
|
||||
use Combodo\iTop\Application\Search\CriterionConversion\CriterionToSearchForm;
|
||||
@@ -482,6 +482,16 @@ class SearchForm
|
||||
|
||||
return array('values' => $aAllowedValues);
|
||||
}
|
||||
elseif ($oAttrDef instanceof AttributeEnumSet)
|
||||
{
|
||||
$aAllowedValues = array();
|
||||
foreach($oAttrDef->GetPossibleValues() as $sCode => $sRawValue)
|
||||
{
|
||||
$aAllowedValues[$sCode] = utils::HtmlEntities($sRawValue);
|
||||
}
|
||||
|
||||
return array('values' => $aAllowedValues);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (method_exists($oAttrDef, 'GetAllowedValuesAsObjectSet'))
|
||||
|
||||
Reference in New Issue
Block a user