liquid_feedback_frontend

changeset 92:42547a48774d

Fixed locking in add/remove interest action
author bsw
date Thu Aug 19 15:36:39 2010 +0200 (2010-08-19)
parents 3da86120cadd
children e401012af093
files app/main/interest/_action/update.lua
line diff
     1.1 --- a/app/main/interest/_action/update.lua	Thu Aug 19 15:36:13 2010 +0200
     1.2 +++ b/app/main/interest/_action/update.lua	Thu Aug 19 15:36:39 2010 +0200
     1.3 @@ -2,7 +2,7 @@
     1.4  
     1.5  local interest = Interest:by_pk(issue_id, app.session.member.id)
     1.6  
     1.7 -local issue = Issue:by_id(issue_id)
     1.8 +local issue = Issue:new_selector():add_where{ "id = ?", issue_id }:for_share():single_object_mode():exec()
     1.9  
    1.10  if issue.closed then
    1.11    slot.put_into("error", _"This issue is already closed.")

Impressum / About Us