Skip to content

Commit

Permalink
fix bug in DAList initializeObject
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpyle committed Oct 2, 2024
1 parent 07cd51c commit 0264776
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

## [1.5.13] - 2024-10-01

### Fixed
- Issue with `object_checkboxes` and `object_multiselect` when used as
elements in a `DAList`.

## [1.5.12] - 2024-09-30

### Changed
Expand Down
2 changes: 1 addition & 1 deletion docassemble_base/docassemble/base/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -1861,7 +1861,7 @@ def initializeObject(self, *pargs, **kwargs):
for key, val in kwargs.items():
new_obj_parameters[key] = val
newobject = objectFunction(self.instanceName + '[' + repr(index) + ']', *pargs, **new_obj_parameters)
for pre_index in range(index): # pylint: disable=unused-variable
for pre_index in range(len(self.elements), index): # pylint: disable=unused-variable
self.elements.append(None)
self[index] = newobject
self.there_are_any = True
Expand Down

0 comments on commit 0264776

Please sign in to comment.