add_to_task still uses the old class

This commit is contained in:
tcely authored and GitHub committed 2025-07-03 05:32:39 -04:00
1 parent 7b897fb7a8
commit f09a34f1e1
1 file changed
+1 -1
+1 -1
View File
@@ -885,7 +885,7 @@ class TasksView(ListView):
data['wait_for_database_queue'] = False data['wait_for_database_queue'] = False
def add_to_task(task): def add_to_task(task):
obj, url = map_task_to_instance(task) obj, url = map_task_to_instance(task, using_history=False)
if not obj: if not obj:
return False return False
setattr(task, 'instance', obj) setattr(task, 'instance', obj)