feat(mail(js)): new button to expand recipients that are LDAP groups
Copy all object attributes when cloning the Message object in the popup view. Fixes #4902pull/265/head
parent
2e46e89d58
commit
46ade7640a
|
@ -827,9 +827,10 @@
|
|||
*/
|
||||
Message.prototype.$omit = function(options) {
|
||||
var message = {},
|
||||
privateAttributes = options && options.privateAttributes;
|
||||
angular.forEach(this.editable, function(value, key) {
|
||||
if (_.includes(['to', 'cc', 'bcc'], key)) {
|
||||
privateAttributes = options && options.privateAttributes,
|
||||
source = privateAttributes ? this : this.editable;
|
||||
angular.forEach(source, function(value, key) {
|
||||
if (_.includes(['to', 'cc', 'bcc'], key) && !privateAttributes) {
|
||||
message[key] = _.map(value, function (addr) {
|
||||
return addr.toString();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue