From c73f83603a48eb9f0c86f42367018e0b3b35bcba Mon Sep 17 00:00:00 2001 From: Jean-Roch Maitre Date: Wed, 21 Jun 2017 11:00:03 -0700 Subject: [PATCH] UI-2765: use the endpoint settings of call recording account settings --- submodules/users/users.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/submodules/users/users.js b/submodules/users/users.js index da178cb..ef1573d 100644 --- a/submodules/users/users.js +++ b/submodules/users/users.js @@ -2230,9 +2230,9 @@ define(function(require) { } if (currentAccount.hasOwnProperty('call_recording') && currentAccount.call_recording.hasOwnProperty('account')) { - if (currentAccount.call_recording.account.hasOwnProperty(category)) { - if (currentAccount.call_recording.account[category].hasOwnProperty(direction) && currentAccount.call_recording.account[category][direction].hasOwnProperty('enabled')) { - formattedData.extra[category][direction].accountValue = currentAccount.call_recording.account[category][direction].enabled === true ? self.i18n.active().users.callRecording.toggleValues.on : self.i18n.active().users.callRecording.toggleValues.off; + if (currentAccount.call_recording.endpoint.hasOwnProperty(category)) { + if (currentAccount.call_recording.endpoint[category].hasOwnProperty(direction) && currentAccount.call_recording.endpoint[category][direction].hasOwnProperty('enabled')) { + formattedData.extra[category][direction].accountValue = currentAccount.call_recording.endpoint[category][direction].enabled === true ? self.i18n.active().users.callRecording.toggleValues.on : self.i18n.active().users.callRecording.toggleValues.off; if (!found) { formattedData.extra[category][direction].enabled = 'default';