From 9cafb2829f4d33892d19a60d9a2ea7aec0ea6968 Mon Sep 17 00:00:00 2001 From: Staffan Malmgren Date: Mon, 3 Feb 2025 09:42:40 +0100 Subject: [PATCH] avoid calling fix_subdoc twice (only in include_docx_template) --- docassemble_base/docassemble/base/parse.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/docassemble_base/docassemble/base/parse.py b/docassemble_base/docassemble/base/parse.py index c36844207..bb47718d9 100644 --- a/docassemble_base/docassemble/base/parse.py +++ b/docassemble_base/docassemble/base/parse.py @@ -7147,8 +7147,6 @@ def finalize_attachment(self, attachment, result, the_user_dict): # Copy over images, etc from subdoc to master template subdocs = docassemble.base.functions.this_thread.misc.get('docx_subdocs', []) # Get the subdoc file list the_template_docx = the_template.docx - for subdoc in subdocs: - docassemble.base.file_docx.fix_subdoc(the_template_docx, subdoc) except TemplateError as the_error: if (not hasattr(the_error, 'filename')) or the_error.filename is None: