mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
N°917: AttributeQueryAttCodeSet support in XML definition
This commit is contained in:
@@ -1411,8 +1411,19 @@ EOF
|
||||
$aParameters['depends_on'] = $sDependencies;
|
||||
$aParameters['max_items'] = $this->GetPropNumber($oField, 'max_items', 12);
|
||||
$aParameters['class_field'] = $this->GetMandatoryPropString($oField, 'class_field');
|
||||
// List of AttributeDefinition Classes to filter class_field (empty means all)
|
||||
$aParameters['attribute_definition_list'] = $this->GetPropString($oField, 'attribute_definition_list', '');
|
||||
}
|
||||
elseif ($sAttType == 'AttributeQueryAttCodeSet')
|
||||
{
|
||||
$aTagFieldsInfo[] = $sAttCode;
|
||||
$aParameters['allowed_values'] = 'null'; // or "new ValueSetEnum('SELECT xxxx')"
|
||||
$aParameters['sql'] = $this->GetMandatoryPropString($oField, 'sql');
|
||||
$aParameters['is_null_allowed'] = $this->GetPropBoolean($oField, 'is_null_allowed', false);
|
||||
$aParameters['depends_on'] = $sDependencies;
|
||||
$aParameters['max_items'] = $this->GetPropNumber($oField, 'max_items', 12);
|
||||
$aParameters['query_field'] = $this->GetMandatoryPropString($oField, 'query_field');
|
||||
}
|
||||
elseif ($sAttType == 'AttributeClassState')
|
||||
{
|
||||
$aTagFieldsInfo[] = $sAttCode;
|
||||
|
||||
Reference in New Issue
Block a user