From c0834523b070686899e2d8d930ef24e49d58f3d4 Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Wed, 4 Feb 2015 20:36:17 +0500 Subject: [PATCH] [#369] new build list: fix selecting a version --- .../angularjs/build_lists/new_build_list_controller.js.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/angularjs/build_lists/new_build_list_controller.js.coffee b/app/assets/javascripts/angularjs/build_lists/new_build_list_controller.js.coffee index 451c3fd26..becfb2e3e 100644 --- a/app/assets/javascripts/angularjs/build_lists/new_build_list_controller.js.coffee +++ b/app/assets/javascripts/angularjs/build_lists/new_build_list_controller.js.coffee @@ -35,7 +35,7 @@ NewBuildListController = (dataservice, $http) -> result = _.select(vm.project_versions, (e) -> e.name is vm.project_version_name ) - return vm.project_versions[0] if result.length is 0 + return defaultProjectVersion() if result.length is 0 result[0] changeStatusRepositories = ->