mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
#757 Better UI to manage direct linksets: added the ability to provide the "reverse query" by specifying a '<filter>' tag on AttributeLinkedSet.
SVN:trunk[2942]
This commit is contained in:
@@ -723,7 +723,6 @@ EOF;
|
||||
{
|
||||
$aParameters['linked_class'] = $this->GetPropString($oField, 'linked_class', '');
|
||||
$aParameters['ext_key_to_me'] = $this->GetPropString($oField, 'ext_key_to_me', '');
|
||||
$aParameters['allowed_values'] = 'null';
|
||||
$aParameters['count_min'] = $this->GetPropNumber($oField, 'count_min', 0);
|
||||
$aParameters['count_max'] = $this->GetPropNumber($oField, 'count_max', 0);
|
||||
$sEditMode = $oField->GetChildText('edit_mode');
|
||||
@@ -731,6 +730,15 @@ EOF;
|
||||
{
|
||||
$aParameters['edit_mode'] = $this->EditModeToPHP($sEditMode);
|
||||
}
|
||||
if ($sOql = $oField->GetChildText('filter'))
|
||||
{
|
||||
$sEscapedOql = self::QuoteForPHP($sOql);
|
||||
$aParameters['allowed_values'] = "new ValueSetObjects($sEscapedOql)";
|
||||
}
|
||||
else
|
||||
{
|
||||
$aParameters['allowed_values'] = 'null';
|
||||
}
|
||||
$aParameters['depends_on'] = $sDependencies;
|
||||
}
|
||||
elseif ($sAttType == 'AttributeExternalKey')
|
||||
|
||||
Reference in New Issue
Block a user