mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
Merge branch 'master' of ssh://172.20.0.1/var/git/espo/backend
This commit is contained in:
@@ -110,7 +110,7 @@ class Email extends \Espo\Core\Controllers\Record
|
||||
}
|
||||
}
|
||||
|
||||
return $this->getRecordService()->sendTestEmail($data);
|
||||
return $this->getRecordService()->sendTestEmail(get_object_vars($data));
|
||||
}
|
||||
|
||||
public function postActionMarkAsRead($params, $data, $request)
|
||||
|
||||
@@ -96,7 +96,11 @@ class Sender
|
||||
'connection_config' => array()
|
||||
);
|
||||
if ($params['auth']) {
|
||||
$opts['connection_class'] = 'login';
|
||||
if (!empty($params['smtpAuthMechanism'])) {
|
||||
$opts['connection_class'] = $params['smtpAuthMechanism'];
|
||||
} else {
|
||||
$opts['connection_class'] = 'login';
|
||||
}
|
||||
$opts['connection_config']['username'] = $params['username'];
|
||||
$opts['connection_config']['password'] = $params['password'];
|
||||
}
|
||||
@@ -135,7 +139,7 @@ class Sender
|
||||
'connection_config' => array()
|
||||
);
|
||||
if ($config->get('smtpAuth')) {
|
||||
$opts['connection_class'] = 'login';
|
||||
$opts['connection_class'] = $config->get('smtpAuthMechanism', 'login');
|
||||
$opts['connection_config']['username'] = $config->get('smtpUsername');
|
||||
$opts['connection_config']['password'] = $config->get('smtpPassword');
|
||||
}
|
||||
|
||||
@@ -24,34 +24,12 @@
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
|
||||
************************************************************************/
|
||||
|
||||
Espo.define('Crm:Views.Task.List', 'Views.List', function (Dep) {
|
||||
************************************************************************/
|
||||
|
||||
Espo.define('crm:views/task/list', 'views/list', function (Dep) {
|
||||
|
||||
return Dep.extend({
|
||||
|
||||
actionSetCompleted: function (data) {
|
||||
var id = data.id;
|
||||
if (!id) {
|
||||
return;
|
||||
}
|
||||
var model = this.collection.get(id);
|
||||
if (!model) {
|
||||
return;
|
||||
}
|
||||
|
||||
model.set('status', 'Completed');
|
||||
|
||||
this.listenToOnce(model, 'sync', function () {
|
||||
this.notify(false);
|
||||
this.collection.fetch();
|
||||
}, this);
|
||||
|
||||
this.notify('Saving...');
|
||||
model.save();
|
||||
|
||||
},
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
@@ -51,8 +51,7 @@ Espo.define('crm:views/task/record/list', 'views/record/list', function (Dep) {
|
||||
|
||||
this.notify('Saving...');
|
||||
model.save();
|
||||
|
||||
},
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user