attachment: forbid parent

This commit is contained in:
yuri
2016-02-08 11:56:47 +02:00
parent 83943d1daa
commit 6abdc001e5
4 changed files with 6 additions and 6 deletions

View File

@@ -97,10 +97,6 @@ class Cleanup extends \Espo\Core\Jobs\Base
'OR' => array(
array(
'role' => ['Export File']
),
array(
'role' => ['Attachment'],
'parentId' => null
)
),
'createdAt<' => $dateBefore

View File

@@ -62,6 +62,9 @@
"fieldLevel": {
},
"scopeFieldLevel": {
"Attachment": {
"parent": false
}
}
},
"default": {

View File

@@ -60,6 +60,9 @@
},
"Meeting": {
"reminders": false
},
"Attachment": {
"parent": false
}
}
},

View File

@@ -260,8 +260,6 @@ Espo.define('views/fields/file', 'views/fields/link', function (Dep) {
attachment.set('type', fileParams.type || 'text/plain');
attachment.set('size', fileParams.size);
attachment.set('role', 'Attachment');
attachment.set('parentType', this.model.name);
attachment.set('parentId', this.model.id);
attachment.once('sync', function () {
if (!isCanceled) {