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

Merge branch 'issue/43-fix-draft-indexing' into 'develop'

Issue #43: Check published status before indexing

See merge request rfhf19/cleanning-portalmec!41
parents 3268d4c7 99850987
No related branches found
No related tags found
1 merge request!41Issue #43: Check published status before indexing
Pipeline #34070 failed
......@@ -137,7 +137,7 @@ class LearningObject < ApplicationRecord
end
def should_index?
deleted_at.nil?
(deleted_at.nil? and state == "published")
end
def delete_index
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment