Skip to content

Commit

Permalink
Handle False boolean overflow triggers, not just True
Browse files Browse the repository at this point in the history
  • Loading branch information
nonprofittechy committed Apr 29, 2024
1 parent fe651f5 commit 5f0e08c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docassemble/AssemblyLine/al_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,10 @@ def overflow_value(
Any: The portion of the variable exceeding the content safe for display, considered as overflow.
"""
# Handle a Boolean overflow first
if isinstance(self.overflow_trigger, bool) and self.overflow_trigger:
return self.value()
if isinstance(self.overflow_trigger, bool):
if self.overflow_trigger:
return self.value()
return ""

# If trigger is not a boolean value, overflow value is the value that starts at the end of the safe value.
original_value = self.value_if_defined()
Expand Down

0 comments on commit 5f0e08c

Please sign in to comment.