Skip to content

Commit 2a998e8

Browse files
Actually even better safety for weird names
1 parent 594ae8d commit 2a998e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docassemble/AssemblyLine/data/questions/ql_baseline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1442,7 +1442,7 @@ code: |
14421442
---
14431443
code: |
14441444
if len(signature_fields):
1445-
if ".signature" in next(iter(signature_fields)):
1445+
if next(iter(signature_fields)).endswith(".signature"):
14461446
# the id: signature choice question has to assume the object exists, so we don't guard against that here
14471447
# note: this does not need to be an ALIndividual, so just use str() instead of .full_name()
14481448
slash_s_example_name = str(value( next(iter(signature_fields))[:-len(".signature")] ))

0 commit comments

Comments
 (0)