mods/core/sets/all/content.rb in wagn-1.13.0.pre vs mods/core/sets/all/content.rb in wagn-1.13.0.pre1
- old
+ new
@@ -1,11 +1,11 @@
::Card.error_codes[:conflict] = [:conflict, 409]
def content
- if new_card?
- template ? template.content : ''
- else
+ if !new_card?
current_revision.content
+ elsif template && template.content.present?
+ template.content
end
end
def raw_content
structure ? template.content : content