FIX: don't attempt to bump draft sequence if no editor
Rare case on old installs
This commit is contained in:
parent
0c59346478
commit
574d447254
|
@ -618,7 +618,7 @@ class Post < ActiveRecord::Base
|
|||
|
||||
def advance_draft_sequence
|
||||
return if topic.blank? # could be deleted
|
||||
DraftSequence.next!(last_editor_id, topic.draft_key)
|
||||
DraftSequence.next!(last_editor_id, topic.draft_key) if last_editor_id
|
||||
end
|
||||
|
||||
# TODO: move to post-analyzer?
|
||||
|
|
Loading…
Reference in New Issue