readOnly attributes

This commit is contained in:
yuri
2015-12-25 10:59:28 +02:00
parent 838f8ba3b3
commit bc0ea9ab3a
5 changed files with 19 additions and 4 deletions
@@ -146,7 +146,8 @@
"portalUser": {
"type": "link",
"layoutMassUpdateDisabled": true,
"layoutListDisabled": true
"layoutListDisabled": true,
"readOnly": true
}
},
"links": {
@@ -33,12 +33,16 @@ use \Espo\ORM\Entity;
class CaseObj extends \Espo\Services\Record
{
protected $mergeLinkList = array(
protected $mergeLinkList = [
'tasks',
'meetings',
'calls',
'emails'
);
]
protected $readOnlyAttributeList = [
'inboundEmailId'
];
public function afterCreate($entity, array $data)
{
@@ -37,6 +37,11 @@ class Contact extends \Espo\Services\Record
'targetLists'
];
protected $readOnlyAttributeList = [
'inboundEmailId',
'portalUserId'
];
protected function getDuplicateWhereClause(Entity $entity)
{
$data = array(
@@ -3,7 +3,8 @@
"name": "Name",
"logo": "Logo",
"url": "URL",
"portalRoles": "Roles"
"portalRoles": "Roles",
"isActive": "Is Active"
},
"links": {
"users": "Users",
@@ -13,6 +13,10 @@
"notStorable": true,
"readOnly": true
},
"isActive": {
"type": "bool",
"default": true
},
"portalRoles": {
"type": "linkMultiple"
},