liquid_feedback_frontend
changeset 1809:5425f77466ec
Set identification to null if empty string
author | bsw |
---|---|
date | Thu Dec 02 13:20:26 2021 +0100 (2021-12-02) |
parents | a9b622a25520 |
children | 0a243b9aac6b |
files | app/main/registration_admin/_action/update_verification.lua |
line diff
1.1 --- a/app/main/registration_admin/_action/update_verification.lua Thu Nov 18 14:57:31 2021 +0100 1.2 +++ b/app/main/registration_admin/_action/update_verification.lua Thu Dec 02 13:20:26 2021 +0100 1.3 @@ -59,7 +59,12 @@ 1.4 return 1.5 end 1.6 1.7 - member.identification = param.get("identification") 1.8 + identification = param.get("identification") 1.9 + if identification and #identification == 0 then 1.10 + identification = nil 1.11 + end 1.12 + member.identification = identification 1.13 + 1.14 member.notify_email = param.get("email") 1.15 member:save() 1.16