Customer portal : Displays a message when viewing an object with no attachments in read only

SVN:trunk[4173]
This commit is contained in:
Guillaume Lajarige
2016-06-02 09:15:42 +00:00
parent ae61a1e5eb
commit 07056013c2
2 changed files with 30 additions and 11 deletions

View File

@@ -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);
}
}