Open nonprofittechy opened 11 months ago
To explain a little more what this does: it stops us from using a separate code block to define the items in a bundle. This would be really useful for dynamic interviews, where the number of possible generated documents depends on the answers in the interview. E.g., generating a document for a client and the spouse, or one for each child.
Currently, when we show al_document_bundle, we loop over
.enabled_documents()
which in turn loops over.elements
, thereby not triggering the normal Docassemble process to gather elements of the list.See offending code: https://github.com/SuffolkLITLab/docassemble-AssemblyLine/blob/7726cbe92a184e12b2bb1f9cff219bf4717bee19/docassemble/AssemblyLine/al_document.py#L1645
I'm not quite sure if changing this could break any existing interviews though.
Here's a simple test interview that doesn't work: