recurring_select icon indicating copy to clipboard operation
recurring_select copied to clipboard

Editing Inconsistencies

Open jbolles5 opened this issue 9 years ago • 0 comments

I am having some inconsistencies with editing recurring rules. Here is my model:

Create

rule = RecurringSelect.dirty_hash_to_rule(@repeating_task.recurring_rule)
@repeating_task.recurring_rule  = rule.to_yaml

Edit

rule = @repeating_task.recurring_rule

if RecurringSelect.is_valid_rule?(rule)
  IceCube::Schedule.from_yaml(rule)
end

@repeating_task.recurring_rule = rule

Form

<%= f.select_recurring :recurring_rule, nil, allow_blank: false %>

I am getting the following .. some of the time: screenshot 2015-04-13 12 21 07

There are a few rules that do work just fine. Some are coming up as "Custom", which is odd.

Any thoughts on how this could be fixed?

jbolles5 avatar Apr 13 '15 16:04 jbolles5