Browse Source

UI-2456: features available doesn't include the activated features, so we change some code to reflect that

4.3
Jean-Roch Maitre 9 years ago
parent
commit
68b4b92d96
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      submodules/myOffice/myOffice.js

+ 4
- 2
submodules/myOffice/myOffice.js View File

@ -859,8 +859,10 @@ define(function(require){
if(number) {
self.myOfficeGetNumber(number, function(numberData) {
var availableFeatures = numberData.hasOwnProperty('_read_only') && numberData._read_only.hasOwnProperty('features_available') ? numberData._read_only.features_available : [],
hasE911 = availableFeatures.indexOf('e911') >= 0,
hasCNAM = availableFeatures.indexOf('cnam') >= 0;
activatedFeatures = numberData.hasOwnProperty('_read_only') && numberData._read_only.hasOwnProperty('features') ? numberData._read_only.features : [],
allFeatures = availableFeatures.concat(activatedFeatures),
hasE911 = allFeatures.indexOf('e911') >= 0,
hasCNAM = allFeatures.indexOf('cnam') >= 0;
if(hasE911) {
if (monster.util.isNumberFeatureEnabled('e911')) {


Loading…
Cancel
Save