From 8b4f3eebe6092c68cb9c8ca8fb73a3fe8a8c3817 Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Thu, 8 Aug 2013 21:24:12 +0600 Subject: [PATCH] [#242] fix mistype --- app/views/projects/build_lists/_new_form.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/projects/build_lists/_new_form.html.haml b/app/views/projects/build_lists/_new_form.html.haml index c2dc0bfee..7dc3a64c0 100644 --- a/app/views/projects/build_lists/_new_form.html.haml +++ b/app/views/projects/build_lists/_new_form.html.haml @@ -19,7 +19,7 @@ = check_box_tag "arches[]", arch.id, checked, :id => "arches_#{arch.id}" = label_tag "arches_#{arch.id}", arch.name %h3= t('activerecord.attributes.build_list.update_type') - - selected = params[:build_list].try(:fetch, :update_type) ? {:selected => params[:build_list][:update_version]} : {} + - selected = params[:build_list].try(:[], :update_type) ? {:selected => params[:build_list][:update_type]} : {} .lineForm= f.select :update_type, BuildList::UPDATE_TYPES, selected = render 'shared/autocomplete_form',