liquid_feedback_frontend

changeset 1816:baa87c3780ad

Delete after updating member data
author bsw
date Fri Dec 03 10:31:51 2021 +0100 (2021-12-03)
parents 6246f8249f9f
children 757a87af4c83
files app/main/registration_admin/_action/update_verification.lua
line diff
     1.1 --- a/app/main/registration_admin/_action/update_verification.lua	Thu Dec 02 13:35:38 2021 +0100
     1.2 +++ b/app/main/registration_admin/_action/update_verification.lua	Fri Dec 03 10:31:51 2021 +0100
     1.3 @@ -67,11 +67,6 @@
     1.4    
     1.5    local member = Member:by_id(verification.verified_member_id)
     1.6    
     1.7 -  if param.get("cancel") then
     1.8 -    db:query({ "SELECT delete_member(?)", member.id })
     1.9 -    return
    1.10 -  end
    1.11 -  
    1.12    local identification = param.get("identification")
    1.13    if identification and #identification == 0 then
    1.14      identification = nil
    1.15 @@ -89,6 +84,11 @@
    1.16  
    1.17    verification:save()
    1.18  
    1.19 +  if param.get("cancel") then
    1.20 +    db:query({ "SELECT delete_member(?)", member.id })
    1.21 +    return
    1.22 +  end
    1.23 +
    1.24    if param.get("invite") then
    1.25      member:send_invitation()
    1.26    end

Impressum / About Us