Skip to content
Snippets Groups Projects
Commit e33813ba authored by Richard Fernando Heise Ferreira's avatar Richard Fernando Heise Ferreira
Browse files

Merge branch 'issue/26-fix-drafts-order' into 'develop'

Issue #26: FIX drafts order

See merge request rfhf19/cleanning-portalmec!26
parents 7b8a2026 7d62f59d
No related branches found
No related tags found
1 merge request!26Issue #26: FIX drafts order
Pipeline #32102 failed
......@@ -28,7 +28,7 @@ module PublisherController
end
def show_all_drafts
learning_objects = paginate LearningObject.where(publisher: @publisher, state: LearningObject.states[:draft])
learning_objects = paginate LearningObject.where(publisher: @publisher, state: LearningObject.states[:draft]).order("created_at DESC")
render json: learning_objects
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment