liquid_feedback_frontend
diff app/main/agent/_action/accept.lua @ 1843:b01d9920371b
merge
author | jbe |
---|---|
date | Thu Feb 03 15:57:22 2022 +0100 (2022-02-03) |
parents | 87878d24d7a8 |
children |
line diff
1.1 --- a/app/main/agent/_action/accept.lua Thu Feb 03 15:54:23 2022 +0100 1.2 +++ b/app/main/agent/_action/accept.lua Thu Feb 03 15:57:22 2022 +0100 1.3 @@ -3,24 +3,19 @@ 1.4 local agent = Agent:by_pk(controlled_id, app.session.member_id) 1.5 1.6 if not agent then 1.7 - print("A") 1.8 return false 1.9 end 1.10 1.11 if agent.accepted ~= nil then 1.12 - print("B") 1.13 return false 1.14 end 1.15 1.16 if param.get("rejected") then 1.17 - print("C") 1.18 agent.accepted = false 1.19 elseif param.get("accepted") then 1.20 - print("D") 1.21 agent.accepted = true 1.22 else 1.23 - print("E") 1.24 return false 1.25 end 1.26 -print("F") 1.27 + 1.28 agent:save()