# HG changeset patch # User Lennard de Rijk # Date 1257710084 28800 # Node ID 30a33926ab91781fb65152ae8c76cdcaca1cee1d # Parent c491d96dce2cc5cab7e2426dcd670dea5160bd28 Fixed an error with the task_history not being loaded when it was empty. diff -r c491d96dce2c -r 30a33926ab91 app/soc/modules/ghop/logic/models/task.py --- a/app/soc/modules/ghop/logic/models/task.py Wed Nov 04 21:37:44 2009 +0100 +++ b/app/soc/modules/ghop/logic/models/task.py Sun Nov 08 11:54:44 2009 -0800 @@ -113,8 +113,10 @@ # initialize history task_history = {} # extract the existing json history from the entity to update it + elif entity.history: + task_history = simplejson.loads(entity.history) else: - task_history = simplejson.loads(entity.history) + task_history = {} # we construct history for only changed entity properties if entity_properties: