diff --git a/docassemble_base/docassemble/base/functions.py b/docassemble_base/docassemble/base/functions.py index 36372d86e..8b99fcd41 100644 --- a/docassemble_base/docassemble/base/functions.py +++ b/docassemble_base/docassemble/base/functions.py @@ -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: @@ -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: