Quick correction to correct an exception when a repetition is set without rule
This commit is contained in:
parent
ab88b5cbff
commit
a59d293070
@ -16,7 +16,7 @@ class EventCallbacks
|
||||
def self.before_update(event)
|
||||
return unless event.moderated_changed? && event.moderated?
|
||||
event.decision_time = Time.zone.now
|
||||
create_repeats event if event.repeat > 0
|
||||
create_repeats event if event.repeat > 0 && event.rule
|
||||
end
|
||||
|
||||
def self.after_update(event)
|
||||
|
@ -115,7 +115,7 @@
|
||||
- @event.tags.each do |tag|
|
||||
= link_to tag, tag_path(tag.name), rel: :tag
|
||||
|
||||
- if @event.repeat > 0
|
||||
- if @event.repeat > 0 && @event.rule
|
||||
%h3
|
||||
%em.fa.fa-repeat
|
||||
= @event.schedule
|
||||
|
Loading…
Reference in New Issue
Block a user