From 4bcf88dcee5b3170455b0016137ea96dd1dbec3c Mon Sep 17 00:00:00 2001 From: yuri Date: Thu, 12 Sep 2019 16:39:32 +0300 Subject: [PATCH 01/10] fix mail sender --- application/Espo/Core/Mail/Sender.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/Espo/Core/Mail/Sender.php b/application/Espo/Core/Mail/Sender.php index 56f4e9446f..6a807cbfe7 100644 --- a/application/Espo/Core/Mail/Sender.php +++ b/application/Espo/Core/Mail/Sender.php @@ -172,7 +172,7 @@ class Sender return $this; } - public function send(Email $email, $params = [], &$message = null, $attachmentList = []) + public function send(Email $email, $params = [], $message = null, $attachmentList = []) { if (!$message) { $message = new Message(); From 5d3a785a491ccb0d7d542a5ad755b6d31f8a175a Mon Sep 17 00:00:00 2001 From: yuri Date: Thu, 12 Sep 2019 16:41:20 +0300 Subject: [PATCH 02/10] v --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8483a6149e..e243839d8a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "espocrm", - "version": "5.6.13", + "version": "5.6.14", "description": "", "main": "index.php", "repository": { From c0866c8fea93e0bd1e8e6c42e8c5531fe6e285d2 Mon Sep 17 00:00:00 2001 From: yuri Date: Thu, 12 Sep 2019 16:57:19 +0300 Subject: [PATCH 03/10] fix email template insert --- client/src/views/email-template/record/detail.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/src/views/email-template/record/detail.js b/client/src/views/email-template/record/detail.js index 997b226cb4..d41210b3cd 100644 --- a/client/src/views/email-template/record/detail.js +++ b/client/src/views/email-template/record/detail.js @@ -45,6 +45,8 @@ Espo.define('views/email-template/record/detail', 'views/record/detail', functio if (!bodyView) return; if (this.model.get('isHtml')) { + var $anchor = $(window.getSelection().anchorNode); + if (!$anchor.closest('.note-editing-area').length) return; bodyView.$summernote.summernote('insertText', tag); } else { var $body = bodyView.$element; From 75c3891654160c02ea961a5185de3ef892817178 Mon Sep 17 00:00:00 2001 From: yuri Date: Thu, 12 Sep 2019 17:21:51 +0300 Subject: [PATCH 04/10] action history user type --- .../Espo/Resources/i18n/en_US/ActionHistoryRecord.json | 1 + .../Resources/layouts/ActionHistoryRecord/filters.json | 3 ++- .../Resources/metadata/entityDefs/ActionHistoryRecord.json | 7 +++++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/application/Espo/Resources/i18n/en_US/ActionHistoryRecord.json b/application/Espo/Resources/i18n/en_US/ActionHistoryRecord.json index ebbee7af45..b3f18c2ce1 100644 --- a/application/Espo/Resources/i18n/en_US/ActionHistoryRecord.json +++ b/application/Espo/Resources/i18n/en_US/ActionHistoryRecord.json @@ -4,6 +4,7 @@ "action": "Action", "createdAt": "Date", "user": "User", + "userType": "User Type", "target": "Target", "targetType": "Target Type", "authToken": "Auth Token", diff --git a/application/Espo/Resources/layouts/ActionHistoryRecord/filters.json b/application/Espo/Resources/layouts/ActionHistoryRecord/filters.json index f89f25f5eb..61ccd8025b 100644 --- a/application/Espo/Resources/layouts/ActionHistoryRecord/filters.json +++ b/application/Espo/Resources/layouts/ActionHistoryRecord/filters.json @@ -3,5 +3,6 @@ "target", "createdAt", "ipAddress", - "user" + "user", + "userType" ] \ No newline at end of file diff --git a/application/Espo/Resources/metadata/entityDefs/ActionHistoryRecord.json b/application/Espo/Resources/metadata/entityDefs/ActionHistoryRecord.json index 31f023bf6b..ff38d0ca16 100644 --- a/application/Espo/Resources/metadata/entityDefs/ActionHistoryRecord.json +++ b/application/Espo/Resources/metadata/entityDefs/ActionHistoryRecord.json @@ -26,6 +26,13 @@ "user": { "type": "link" }, + "userType": { + "type": "foreign", + "link": "user", + "field": "type", + "view": "views/fields/foreign-enum", + "notStorable": true + }, "ipAddress": { "type": "varchar", "maxLength": "39" From 2946969e3a58d7c79621949649c0a0b32f72557a Mon Sep 17 00:00:00 2001 From: yuri Date: Fri, 13 Sep 2019 11:36:01 +0300 Subject: [PATCH 05/10] detail custom actions --- client/res/templates/record/detail.tpl | 2 +- client/src/utils.js | 2 + client/src/views/record/detail.js | 51 +++++++++++++++++++++++++- 3 files changed, 53 insertions(+), 2 deletions(-) diff --git a/client/res/templates/record/detail.tpl b/client/res/templates/record/detail.tpl index 0f2d52183a..2b0e58a7e6 100644 --- a/client/res/templates/record/detail.tpl +++ b/client/res/templates/record/detail.tpl @@ -10,7 +10,7 @@