mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-18 23:08:46 +02:00
N°1408 - Dashboard Attribute (removed from "Properties" tab)
This commit is contained in:
@@ -792,8 +792,6 @@ EOF
|
|||||||
{
|
{
|
||||||
if ($bEditMode)
|
if ($bEditMode)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
$sComments = isset($aFieldsComments[$sAttCode]) ? $aFieldsComments[$sAttCode] : '';
|
$sComments = isset($aFieldsComments[$sAttCode]) ? $aFieldsComments[$sAttCode] : '';
|
||||||
$sInfos = '';
|
$sInfos = '';
|
||||||
$iFlags = $this->GetFormAttributeFlags($sAttCode);
|
$iFlags = $this->GetFormAttributeFlags($sAttCode);
|
||||||
@@ -803,7 +801,7 @@ EOF
|
|||||||
$iFlags = $iFlags | $aExtraFlags[$sAttCode];
|
$iFlags = $iFlags | $aExtraFlags[$sAttCode];
|
||||||
}
|
}
|
||||||
$oAttDef = MetaModel::GetAttributeDef($sClass, $sAttCode);
|
$oAttDef = MetaModel::GetAttributeDef($sClass, $sAttCode);
|
||||||
if ((!$oAttDef->IsLinkSet()) && (($iFlags & OPT_ATT_HIDDEN) == 0) && !($oAttDef instanceof AttributeDashboard))
|
if ((!$oAttDef->IsLinkSet()) && (($iFlags & OPT_ATT_HIDDEN) == 0))
|
||||||
{
|
{
|
||||||
$sInputId = $this->m_iFormId.'_'.$sAttCode;
|
$sInputId = $this->m_iFormId.'_'.$sAttCode;
|
||||||
if ($oAttDef->IsWritable())
|
if ($oAttDef->IsWritable())
|
||||||
@@ -2894,7 +2892,7 @@ EOF
|
|||||||
$iFlags = $this->GetAttributeFlags($sAttCode);
|
$iFlags = $this->GetAttributeFlags($sAttCode);
|
||||||
}
|
}
|
||||||
$oAttDef = MetaModel::GetAttributeDef($sClass, $sAttCode);
|
$oAttDef = MetaModel::GetAttributeDef($sClass, $sAttCode);
|
||||||
if ((!$oAttDef->IsLinkSet()) && (($iFlags & OPT_ATT_HIDDEN) == 0))
|
if ((!$oAttDef->IsLinkSet()) && (($iFlags & OPT_ATT_HIDDEN) == 0) && !($oAttDef instanceof AttributeDashboard))
|
||||||
{
|
{
|
||||||
// The field is visible in the current state of the object
|
// The field is visible in the current state of the object
|
||||||
if ($sStateAttCode == $sAttCode)
|
if ($sStateAttCode == $sAttCode)
|
||||||
|
|||||||
Reference in New Issue
Block a user