Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions docassemble_base/docassemble/base/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -4580,7 +4580,8 @@ def process_action():
if the_action == '_da_list_remove':
if 'action_item' in this_thread.current_info and 'action_list' in this_thread.current_info:
try:
this_thread.current_info['action_list'].pop(this_thread.current_info['action_item'])
item_popped = this_thread.current_info['action_list'].pop(this_thread.current_info['action_item'])
log(str(item_popped) + ' ' + word('removed') + '.', 'info')
if len(this_thread.current_info['action_list'].elements) == 0 and hasattr(this_thread.current_info['action_list'], 'there_are_any'):
this_thread.current_info['action_list'].there_are_any = False
if hasattr(this_thread.current_info['action_list'], 'there_is_another') and this_thread.current_info['action_list'].there_is_another:
Expand All @@ -4604,7 +4605,8 @@ def process_action():
if the_action == '_da_dict_remove':
if 'action_item' in this_thread.current_info and 'action_dict' in this_thread.current_info:
try:
this_thread.current_info['action_dict'].pop(this_thread.current_info['action_item'])
item_popped = this_thread.current_info['action_dict'].pop(this_thread.current_info['action_item'])
log(str(item_popped) + ' ' + word('removed') + '.', 'info')
if len(this_thread.current_info['action_dict'].elements) == 0 and hasattr(this_thread.current_info['action_dict'], 'there_are_any'):
this_thread.current_info['action_dict'].there_are_any = False
if hasattr(this_thread.current_info['action_dict'], 'there_is_another') and this_thread.current_info['action_dict'].there_is_another:
Expand Down