From 3c29b3a3f013da833e2376bac9542583dffc511f Mon Sep 17 00:00:00 2001 From: Eric Walsh Date: Mon, 8 Sep 2014 11:23:09 -0700 Subject: [PATCH] Update recurring_select_helper.rb Re-order list : if there is a list and you have allowed blank, the list should be ordered show the currently_selected_rule first. (Styling issue) --- app/helpers/recurring_select_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/recurring_select_helper.rb b/app/helpers/recurring_select_helper.rb index 5cb1298d..b4fc7e70 100644 --- a/app/helpers/recurring_select_helper.rb +++ b/app/helpers/recurring_select_helper.rb @@ -33,10 +33,10 @@ def recurring_options_for_select(currently_selected_rule = nil, default_schedule if default_schedules.blank? if currently_selected_rule.present? - options_array << blank_option if options[:allow_blank] options_array << ice_cube_rule_to_option(currently_selected_rule) options_array << separator options_array << [I18n.t("recurring_select.change_schedule"), "custom"] + options_array << blank_option if options[:allow_blank] else options_array << blank_option options_array << [I18n.t("recurring_select.set_schedule"), "custom"]