Skip to content

Commit

Permalink
UI-2009: Fix an issue with main faxbox
Browse files Browse the repository at this point in the history
  • Loading branch information
JRMaitre committed Jan 21, 2016
1 parent 1eeb9c3 commit 8127fca
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions submodules/strategy/strategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2595,6 +2595,8 @@ define(function(require){

self.strategyGetAccount({
success: function(account) {
var email = account.contact && account.contact.technical && account.contact.technical.hasOwnProperty('email') ? account.contact.technical.email : undefined;

args.data = {
name: account.name + self.i18n.active().strategy.faxing.nameExtension,
caller_name: account.name,
Expand All @@ -2606,17 +2608,21 @@ define(function(require){
notifications: {
inbound: {
email: {
send_to: account.contact.technical.email
send_to: email
}
},
outbound: {
email: {
send_to: account.contact.technical.email
send_to: email
}
}
}
};

if(!email) {
delete args.data.notifications;
}

self.strategyCreateFaxbox(args);
}
});
Expand Down

0 comments on commit 8127fca

Please sign in to comment.