# HG changeset patch # User bsw # Date 1638447626 -3600 # Node ID 5425f77466ec8be284e39b1171b262a025366d36 # Parent a9b622a25520b7bac2817f9bfad294b0889d929e Set identification to null if empty string diff -r a9b622a25520 -r 5425f77466ec app/main/registration_admin/_action/update_verification.lua --- a/app/main/registration_admin/_action/update_verification.lua Thu Nov 18 14:57:31 2021 +0100 +++ b/app/main/registration_admin/_action/update_verification.lua Thu Dec 02 13:20:26 2021 +0100 @@ -59,7 +59,12 @@ return end - member.identification = param.get("identification") + identification = param.get("identification") + if identification and #identification == 0 then + identification = nil + end + member.identification = identification + member.notify_email = param.get("email") member:save()