readOnly attributes
This commit is contained in:
@@ -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"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user