Open cameronstubber opened 4 years ago
Workaround:
it is possible to get around this issue by ensuring that all pages have at least 1 table row supplied. In the case of an empty table, simply create a row where the columns say NA or Empty or something similar.
Can you provide a sample docx and merge_templates code ?
Expected Behavior
If I submit 3 sets of data to merge_templates, and only 1 contains table rows, I expect that only 1 of the pages should contain the table rows, not more than 1. I also expect where the table should be blank, that the table rows are actually blank.
Current Behavior
The item previous in the array of inputs seems to be given the next pages table rows, if the previous pages rows were empty.
Possible Solution
Possibly an indexing or pointer issue?
Steps to Reproduce (for bugs)
Context
I am trying to write an audit report, which validates parts used to be booked to jobs. The impact of this bug is that the wrong list of parts can appear on a job where it should have no parts (Like an Inspection).
Your Environment