Describe the bug
I found this bug with an unusual test operation. I may theoretically occur in real life with forms that were generated with old versions of pyxform. The first condition is that the form includes a repeat but that there is no default first instance of the repeat present in the XForm. The second condition is that an existing record is loaded and that that record has no repeat instances.
To Reproduce
Steps to reproduce the behavior. If applicable please include the smallest possible XLSForm or XForm (as zip or link).
Transform this form with an old version of pyxform or remove the first (non-template) repeat instance from the model after transformation to an XForm (i.e. remove <rep><a/></rep>).
Load an instance (edit) view to load record <data><meta><instanceID>uuid:1234</instanceID></meta></data>, e.g. like this:
See the TypeError: this.form.repeatPathPrefixes is not iterable
Expected behavior
For the record to load without errors (and without repeats) as with record <data><rep/><meta><instanceID>uuid:1234</instanceID></meta></data>
Additional context
Though old XForms like this will exist, it may not actually be possible for OC to pass a record without repeat instances in which case this bug should not occur.
Describe the bug I found this bug with an unusual test operation. I may theoretically occur in real life with forms that were generated with old versions of pyxform. The first condition is that the form includes a repeat but that there is no default first instance of the repeat present in the XForm. The second condition is that an existing record is loaded and that that record has no repeat instances.
To Reproduce Steps to reproduce the behavior. If applicable please include the smallest possible XLSForm or XForm (as zip or link).
<rep><a/></rep>
).<data><meta><instanceID>uuid:1234</instanceID></meta></data>
, e.g. like this:TypeError: this.form.repeatPathPrefixes is not iterable
Expected behavior For the record to load without errors (and without repeats) as with record
<data><rep/><meta><instanceID>uuid:1234</instanceID></meta></data>
Additional context Though old XForms like this will exist, it may not actually be possible for OC to pass a record without repeat instances in which case this bug should not occur.