liquid_feedback_frontend

changeset 1789:87878d24d7a8

Removed debug code
author bsw
date Wed Oct 20 15:47:25 2021 +0200 (2021-10-20)
parents b27b327be05e
children 20c1c8cc28ba
files app/main/agent/_action/accept.lua
line diff
     1.1 --- a/app/main/agent/_action/accept.lua	Wed Oct 20 15:25:41 2021 +0200
     1.2 +++ b/app/main/agent/_action/accept.lua	Wed Oct 20 15:47:25 2021 +0200
     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()

Impressum / About Us