app/soc/modules/ghop/views/models/task.py
changeset 2981 8a99de852dc2
parent 2978 2b3c39483f6f
child 3002 2c5e9cd4ba4d
--- a/app/soc/modules/ghop/views/models/task.py	Sun Sep 27 17:46:43 2009 +0200
+++ b/app/soc/modules/ghop/views/models/task.py	Sun Sep 27 18:18:53 2009 +0200
@@ -802,14 +802,10 @@
       return helper.responses.errorResponse(
           error, request, template=params['error_public'], context=context)
 
-    if entity.status in ['Claimed', 'NeedsReview',
-                         'ActionNeeded', 'NeedsWork']:
-      entity, comment_entity, ws_entity = (
-          ghop_task_logic.logic.updateTaskStatus(entity))
-      if comment_entity:
-        comment_entities.append(comment_entity)
-      if ws_entity:
-        ws_entities.append(ws_entity)
+    # because we are not sure if the Task API has called this for us we do it
+    entity, comment_entity = ghop_task_logic.logic.updateTaskStatus(entity)
+    if comment_entity:
+      comment_entities.append(comment_entity)
 
     context['entity'] = entity
     context['entity_key_name'] = entity.key().id_or_name()