Skip to content
Snippets Groups Projects
Commit 4bd18213 authored by Matheus Agio Nerone's avatar Matheus Agio Nerone
Browse files

fixing download bug when there was no attachment


Signed-off-by: default avatarman13 <man13@inf.ufpr.br>
parent 5ec3f92a
No related branches found
No related tags found
No related merge requests found
......@@ -59,6 +59,7 @@ module LearningObjectsHelper
end
def display_download_button(learning_object)
return nil if learning_object.default_attachment.blank?
return external_website_btn(learning_object) if learning_object.has_url_reference?
download_btn learning_object
end
......
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