From 66e41edbaec360f41d0a721828e01a45e029fd2f Mon Sep 17 00:00:00 2001 From: Joris Tirado Date: Tue, 2 Dec 2014 10:33:55 -0800 Subject: [PATCH] UI-925: Always convert phone numbers into strings --- submodules/strategy/strategy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submodules/strategy/strategy.js b/submodules/strategy/strategy.js index 7d6709f..1a873fe 100644 --- a/submodules/strategy/strategy.js +++ b/submodules/strategy/strategy.js @@ -483,7 +483,7 @@ define(function(require){ var $this = $(this), numberToRemove = $this.data('number'), e911Feature = $this.data('e911'), - indexToRemove = strategyData.callflows["MainCallflow"].numbers.indexOf(numberToRemove); + indexToRemove = strategyData.callflows["MainCallflow"].numbers.indexOf(numberToRemove.toString()); if(e911Feature === 'active' && container.find('.number-element .remove-number[data-e911="active"]').length === 1) { monster.ui.alert('error', self.i18n.active().strategy.alertMessages.lastE911Error);