Describe the bug
In the MLH Divorce interview, (once the user has reached the download screen for the first time) the Judgment of Divorce filename does not update after adding children or removing all children through the review screen.
The title of the document will be correct when opening it in a new tab from the download screen, and the document itself will be correct. However, the filename on the download screen and on the file that is emailed to the user will still be the original filename that was determined when the user first reached the download screen.
This bundle uses Bates page numbering, and it is the only conditionally named bundle in the interview.
See code setting filename and title from documents.yml in repo:
objects:
- judgment_and_addenda_bundle: ALDocumentBundle.using(elements=[
judgment_ccmlh412,
judgment_ccmlh413,
judgment_addendum_personal_property_and_debt,
judgment_addendum_vehicles_1_to_4,
judgment_addendum_vehicles_5_to_8,
judgment_addendum_vehicles_9_to_12,
judgment_addendum_real_property_1_to_2,
judgment_addendum_real_property_3_to_4,
judgment_addendum_real_property_5_to_6,
judgment_addendum_real_property_7_to_8,
judgment_addendum_real_property_9_to_10,
judgment_addendum_pensions,
judgment_addendum_income_tax,
judgment_addendum_parenting_time,
judgment_overflow_addendum
], filename="Judgment of Divorce with Children CC-MLH-413" if there_are_marital_children else "Judgment of Divorce without Children CC-MLH-412", title="Judgment of Divorce with Children CC-MLH-413" if there_are_marital_children else "Judgment of Divorce without Children CC-MLH-412", enabled=True, add_page_numbers=True, page_number_area="BOTTOM_LEFT", page_number_digits=2, page_number_font_size=10, page_number_offset_horizontal=40, page_number_offset_vertical=25, page_number_prefix="Page ")
To Reproduce
Steps to reproduce the behavior:
- Complete the Judgment of Divorce interview (or the complaint) with or without children.
- On the download screen, note the name of the Judgment of Divorce (last file) and the title that appears when opened in browser.
- Either add children (if you said no children originally) or remove all children (if you added them originally) through the review screen.
- Click resume.
- On the download screen, note the filename of the Judgment of Divorce and the title that appears when opened in browser.
- The download screen (and emailed documents) will show the old filename, while the title will show the correct updated name.
Expected behavior
Ideally, the filename on the download screen and emailed documents should update to match the filename that is assigned. In this case, it depends on whether or not there are children.
Screenshots
First download screen, no children:



After adding children throught the review screen:



Version Information (should be in your.docassemble.server/updatepackage:
- Docassemble Version: Unsure, but @ekressmiller should know.
- AssemblyLine Version: 5.4.1
Describe the bug
In the MLH Divorce interview, (once the user has reached the download screen for the first time) the Judgment of Divorce filename does not update after adding children or removing all children through the review screen.
The title of the document will be correct when opening it in a new tab from the download screen, and the document itself will be correct. However, the filename on the download screen and on the file that is emailed to the user will still be the original filename that was determined when the user first reached the download screen.
This bundle uses Bates page numbering, and it is the only conditionally named bundle in the interview.
See code setting filename and title from documents.yml in repo:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Ideally, the filename on the download screen and emailed documents should update to match the filename that is assigned. In this case, it depends on whether or not there are children.
Screenshots



First download screen, no children:
After adding children throught the review screen:



Version Information (should be in
your.docassemble.server/updatepackage: