liquid_feedback_frontend

diff app/main/opinion/_action/update.lua @ 3:768faea1096d

Version alpha4

Members interested in an issue or supporting an initiative have a weight information attached. Browsing the members causing that weight is possible.

Initiatives may provide a link to an external discussion platform

Direct link on every initiative page to create an alternative initiative

Bugfix: No error when clicking "neutral", when "neutral" is currently selected
author bsw
date Mon Nov 30 12:00:00 2009 +0100 (2009-11-30)
parents 3bfb2fcf7ab9
children afd9f769c7ae
line diff
     1.1 --- a/app/main/opinion/_action/update.lua	Mon Nov 23 12:00:00 2009 +0100
     1.2 +++ b/app/main/opinion/_action/update.lua	Mon Nov 30 12:00:00 2009 +0100
     1.3 @@ -4,9 +4,11 @@
     1.4  
     1.5  local opinion = Opinion:by_pk(member_id, suggestion_id)
     1.6  
     1.7 -if opinion and param.get("delete") then
     1.8 -  opinion:destroy()
     1.9 -  slot.put_into("notice", _"Your opinion has been updated")
    1.10 +if param.get("delete") then
    1.11 +  if opinion then
    1.12 +    opinion:destroy()
    1.13 +  end
    1.14 +  slot.put_into("notice", _"Your opinion has been deleted")
    1.15    return
    1.16  end
    1.17  

Impressum / About Us