diff --git a/ang/crmUi.js b/ang/crmUi.js index 9ce768703075..b8640ef29cdd 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 */