Skip to content

Commit

Permalink
FIX: event removal
Browse files Browse the repository at this point in the history
  • Loading branch information
angusmcleod committed Mar 29, 2020
1 parent 63e7a38 commit a5340f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugin.rb
Expand Up @@ -270,6 +270,8 @@ def include_event_going_total?
)

::PostRevisor.track_topic_field(:event) do |tc, event|
event = event.present? ? event : {}

if tc.guardian.can_edit_event?(tc.topic.category)
event_start = event['start'] ? event['start'].to_datetime.to_i : nil
start_change = tc.record_change('event_start', tc.topic.custom_fields['event_start'], event_start)
Expand Down

0 comments on commit a5340f6

Please sign in to comment.