lib/isodoc/function/utils.rb in isodoc-0.9.19 vs lib/isodoc/function/utils.rb in isodoc-0.9.20

- old
+ new

@@ -132,10 +132,10 @@ return nil if !v.nil? && v.is_a?(String) && v.empty? v end def populate_template(docxml, _format) - meta = @meta.get.merge(@labels) + meta = @meta.get.merge(@labels || {}) docxml = docxml. gsub(/\[TERMREF\]\s*/, l10n("[#{@source_lbl}: ")). gsub(/\s*\[\/TERMREF\]\s*/, l10n("]")). gsub(/\s*\[MODIFICATION\]/, l10n(", #{@modified_lbl} — ")) template = liquid(docxml)