From 5919adff1dc7a531d426c211baf65d8c9b538eeb Mon Sep 17 00:00:00 2001 From: "deb.monish" Date: Thu, 28 Sep 2017 17:15:17 +0530 Subject: [PATCH] CRM-21231: On CiviMail screen make 'Review and Schedule' tab active if required fields are filled --- ang/crmUi.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ang/crmUi.js b/ang/crmUi.js index 9ce76870307..b8640ef29cd 100644 --- a/ang/crmUi.js +++ b/ang/crmUi.js @@ -793,11 +793,7 @@ }; this.isSelectable = function(step) { if (step.selected) return false; - var result = false; - angular.forEach(steps, function(otherStep, otherKey) { - if (step === otherStep && otherKey <= maxVisited) result = true; - }); - return result; + return this.$validStep(); }; /*** @param Object step the $scope of the step */