Skip to content
Snippets Groups Projects
Commit 8206aba6 authored by pabois's avatar pabois
Browse files

fix bloc language when about has no language

parent 78563250
No related branches found
No related tags found
No related merge requests found
......@@ -99,7 +99,7 @@ class Communication::Block < ApplicationRecord
def language
return @language if defined?(@language)
@language ||= about.respond_to?(:language) ? about.language : nil
@language ||= about.respond_to?(:language) ? about.language : about.university.default_language
end
def duplicate
......
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