mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-21 16:22:20 +02:00
N°1320: Add option to show/hide linkedsets out of user's scopes in portal
This commit is contained in:
@@ -490,6 +490,11 @@ class ObjectFormManager extends FormManager
|
||||
{
|
||||
$aFieldsExtraData[$sFieldId]['opened'] = true;
|
||||
}
|
||||
// Checking if field allows to ignore scope (For linked set)
|
||||
if ($oFieldNode->hasAttribute('data-field-ignore-scopes') && ($oFieldNode->getAttribute('data-field-ignore-scopes') === 'true'))
|
||||
{
|
||||
$aFieldsExtraData[$sFieldId]['ignore_scopes'] = true;
|
||||
}
|
||||
// Checking field display mode
|
||||
if ($oFieldNode->hasAttribute('data-field-display-mode') && $oFieldNode->getAttribute('data-field-display-mode') !== '')
|
||||
{
|
||||
@@ -889,6 +894,11 @@ class ObjectFormManager extends FormManager
|
||||
{
|
||||
$oField->SetDisplayOpened(true);
|
||||
}
|
||||
// - Displaying out of scopes items
|
||||
if (array_key_exists($sAttCode, $aFieldsExtraData) && array_key_exists('ignore_scopes', $aFieldsExtraData[$sAttCode]))
|
||||
{
|
||||
$oField->SetDisplayLimitedAccessItems(true);
|
||||
}
|
||||
}
|
||||
// - BlobField
|
||||
if (in_array(get_class($oField), array('Combodo\\iTop\\Form\\Field\\BlobField', 'Combodo\\iTop\\Form\\Field\\ImageField')))
|
||||
|
||||
Reference in New Issue
Block a user