getMinimumPlan should ignore deprecated plans

This commit is contained in:
Joseph Schorr 2013-12-20 22:41:00 -05:00
parent c20e7dbcf7
commit 44d0505990

View file

@ -394,7 +394,7 @@ quayApp = angular.module('quay', ['ngRoute', 'chieffancypants.loadingBar', 'rest
};
planService.getMinimumPlan = function(privateCount, isBusiness, callback) {
planService.verifyLoaded(function() {
planService.getPlans(function(plans) {
for (var i = 0; i < plans.length; i++) {
var plan = plans[i];
if (isBusiness && !planService.isOrgCompatible(plan)) {