Browse Source

UI-586: Fixed an issue when call-forward didn't exist and we were trying

to open the call forwarding feature.
4.3
Jean-Roch Maitre 12 years ago
parent
commit
3f1580d473
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      submodules/users/users.js

+ 2
- 2
submodules/users/users.js View File

@ -1780,7 +1780,7 @@ define(function(require){
},
timeoutWarningBox = featureTemplate.find('.timeout-warning');
if(currentUser.call_forward.require_keypress) {
if(currentUser.hasOwnProperty('call_forward') && currentUser.call_forward.require_keypress) {
timeoutWarningBox.hide();
}
@ -1830,7 +1830,7 @@ define(function(require){
}
});
if ( currentUser.call_forward.number && /^(\+1)/.test(currentUser.call_forward.number) ) {
if (currentUser.hasOwnProperty('call_forward') && currentUser.call_forward.number && /^(\+1)/.test(currentUser.call_forward.number)) {
featureTemplate.find('#phoneType').val('mobile');
featureTemplate.find('#number').mask('+1 (999) 999-9999');
} else {


Loading…
Cancel
Save