Fix commentaire PJ bug
This commit is contained in:
parent
6f31a4d7b7
commit
54bcc829c0
1 changed files with 8 additions and 0 deletions
|
@ -19,6 +19,14 @@ class PieceJustificative < ActiveRecord::Base
|
|||
content.blank?
|
||||
end
|
||||
|
||||
def libelle
|
||||
if type_de_piece_justificative.nil?
|
||||
return content.to_s
|
||||
else
|
||||
type_de_piece_justificative.libelle
|
||||
end
|
||||
end
|
||||
|
||||
def content_url
|
||||
unless content.url.nil?
|
||||
if Features.remote_storage
|
||||
|
|
Loading…
Reference in a new issue