fix reminders

This commit is contained in:
yuri
2019-10-08 10:45:07 +03:00
parent 5d10da3b78
commit 09301e9d7c
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -64,6 +64,7 @@ class Metadata extends \Espo\Core\Services\Base
if (!$this->getUser()->isAdmin()) {
$scopeList = array_keys($this->getMetadata()->get(['scopes'], []));
foreach ($scopeList as $scope) {
if (in_array($scope, ['Reminder'])) continue;
if (!$this->getAcl()->check($scope)) {
unset($data->entityDefs->$scope);
unset($data->clientDefs->$scope);
@@ -26,7 +26,7 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
Espo.define('crm:views/meeting/fields/reminders', 'views/fields/base', function (Dep) {
define('crm:views/meeting/fields/reminders', 'views/fields/base', function (Dep) {
return Dep.extend({
@@ -76,8 +76,8 @@ Espo.define('crm:views/meeting/fields/reminders', 'views/fields/base', function
this.reminderList = this.model.get(this.name) || [];
}, this);
this.typeList = this.getMetadata().get('entityDefs.Reminder.fields.type.options');
this.secondsList = this.getMetadata().get('entityDefs.Reminder.fields.seconds.options');
this.typeList = this.getMetadata().get('entityDefs.Reminder.fields.type.options') || [];
this.secondsList = this.getMetadata().get('entityDefs.Reminder.fields.seconds.options') || [];
},
afterRender: function () {