liquid_feedback_frontend

changeset 1813:f9f3a657d348

Set identification to null if empty string also for creating new accounts
author bsw
date Thu Dec 02 13:33:47 2021 +0100 (2021-12-02)
parents fc3f15316a68
children 8f431f4cc87f
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:33:05 2021 +0100
     1.2 +++ b/app/main/registration_admin/_action/update_verification.lua	Thu Dec 02 13:33:47 2021 +0100
     1.3 @@ -99,7 +99,13 @@
     1.4  elseif param.get("accredit") then
     1.5    
     1.6    local member = Member:by_id(verification.requesting_member_id)
     1.7 -  member.identification = param.get("identification")
     1.8 +
     1.9 +  local identification = param.get("identification")
    1.10 +  if identification and #identification == 0 then
    1.11 +    identification = nil
    1.12 +  end
    1.13 +  member.identification = identification
    1.14 +
    1.15    member.notify_email = param.get("email")
    1.16    check_db_error(member:try_save())
    1.17  

Impressum / About Us