From 0068b5efc5f6a8c40a6a6e32b1f9eaa5d9656f5d Mon Sep 17 00:00:00 2001 From: Maxime Roux Date: Thu, 7 May 2015 10:13:01 -0700 Subject: [PATCH] UI-1436: any cdr with no bridge_id is now displayed as an a-leg, regardless of its 'direction' --- submodules/callLogs/callLogs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submodules/callLogs/callLogs.js b/submodules/callLogs/callLogs.js index 5856ce8..c995f5e 100644 --- a/submodules/callLogs/callLogs.js +++ b/submodules/callLogs/callLogs.js @@ -288,7 +288,7 @@ define(function(require){ }, success: function(data, status) { var cdrs = {}, - groupedLegs = _.groupBy(data.data, function(val) { return val.direction === 'inbound' ? 'aLegs' : 'bLegs' }); + groupedLegs = _.groupBy(data.data, function(val) { return (val.direction === 'inbound' || !val.bridge_id) ? 'aLegs' : 'bLegs' }); if(self.lastALeg) { groupedLegs.aLegs.splice(0, 0, self.lastALeg);