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)
|
def self.before_update(event)
|
||||||
return unless event.moderated_changed? && event.moderated?
|
return unless event.moderated_changed? && event.moderated?
|
||||||
event.decision_time = Time.zone.now
|
event.decision_time = Time.zone.now
|
||||||
create_repeats event if event.repeat > 0
|
create_repeats event if event.repeat > 0 && event.rule
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.after_update(event)
|
def self.after_update(event)
|
||||||
|
@ -115,7 +115,7 @@
|
|||||||
- @event.tags.each do |tag|
|
- @event.tags.each do |tag|
|
||||||
= link_to tag, tag_path(tag.name), rel: :tag
|
= link_to tag, tag_path(tag.name), rel: :tag
|
||||||
|
|
||||||
- if @event.repeat > 0
|
- if @event.repeat > 0 && @event.rule
|
||||||
%h3
|
%h3
|
||||||
%em.fa.fa-repeat
|
%em.fa.fa-repeat
|
||||||
= @event.schedule
|
= @event.schedule
|
||||||
|
Loading…
Reference in New Issue
Block a user