# HG changeset patch # User bsw # Date 1282224999 -7200 # Node ID 42547a48774d28d41b63de2b110b5608cea8a215 # Parent 3da86120cadde2cf5a8381521ba733b6f9b9f1bf Fixed locking in add/remove interest action diff -r 3da86120cadd -r 42547a48774d app/main/interest/_action/update.lua --- a/app/main/interest/_action/update.lua Thu Aug 19 15:36:13 2010 +0200 +++ b/app/main/interest/_action/update.lua Thu Aug 19 15:36:39 2010 +0200 @@ -2,7 +2,7 @@ local interest = Interest:by_pk(issue_id, app.session.member.id) -local issue = Issue:by_id(issue_id) +local issue = Issue:new_selector():add_where{ "id = ?", issue_id }:for_share():single_object_mode():exec() if issue.closed then slot.put_into("error", _"This issue is already closed.")