mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 23:32:17 +02:00
Customer portal : Displays a message when viewing an object with no attachments in read only
SVN:trunk[4173]
This commit is contained in:
@@ -569,6 +569,12 @@ class ObjectFormManager extends FormManager
|
||||
->SetTransactionId($oForm->GetTransactionId())
|
||||
->SetAllowDelete($this->oApp['combodo.portal.instance.conf']['properties']['attachments']['allow_delete'])
|
||||
->SetObject($this->oObject);
|
||||
|
||||
if ($this->sMode === static::ENUM_MODE_VIEW)
|
||||
{
|
||||
$oField->SetReadOnly(true);
|
||||
}
|
||||
|
||||
$oForm->AddField($oField);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user