fix emailReplyToAllByDefault

This commit is contained in:
yuri
2016-01-28 16:10:29 +02:00
parent abbf601325
commit e8c570f5df
5 changed files with 5 additions and 5 deletions
@@ -26,7 +26,7 @@
"theme": "Theme",
"useCustomTabList": "Custom Tab List",
"tabList": "Tab List",
"replyEmailToAllByDefault": "Reply Email to All by Default"
"emailReplyToAllByDefault": "Email Reply to All by Default"
},
"links": {
},
@@ -46,7 +46,7 @@
],
[
{
"name": "replyEmailToAllByDefault"
"name": "emailReplyToAllByDefault"
},
false
]
@@ -123,7 +123,7 @@
"translation": "Global.scopeNamesPlural",
"view": "views/preferences/fields/tab-list"
},
"replyEmailToAllByDefault": {
"emailReplyToAllByDefault": {
"type": "bool",
"default": true
}
@@ -193,7 +193,7 @@ Espo.define('crm:views/record/panels/history', 'crm:views/record/panels/activiti
this.getModelFactory().create('Email', function (model) {
model.id = id;
this.listenToOnce(model, 'sync', function () {
var attributes = emailHelper.getReplyAttributes(model, data, this.getPreferences().get('replyEmailToAllByDefault'));
var attributes = emailHelper.getReplyAttributes(model, data, this.getPreferences().get('emailReplyToAllByDefault'));
this.createView('quickCreate', 'views/modals/compose-email', {
attributes: attributes,
}, function (view) {
+1 -1
View File
@@ -51,7 +51,7 @@ Espo.define('views/email/detail', ['views/detail', 'email-helper'], function (De
this.addMenuItem('buttons', {
name: 'reply',
label: 'Reply',
action: this.getPreferences().get('replyEmailToAllByDefault') ? 'replyToAll' : 'reply',
action: this.getPreferences().get('emailReplyToAllByDefault') ? 'replyToAll' : 'reply',
style: 'danger'
}, true);