# HG changeset patch # User bsw # Date 1638448427 -3600 # Node ID f9f3a657d348f3f1aa1000b1c69a0ebc551743ad # Parent fc3f15316a680c3149b547328cf0fa7e2c104b3a Set identification to null if empty string also for creating new accounts diff -r fc3f15316a68 -r f9f3a657d348 app/main/registration_admin/_action/update_verification.lua --- a/app/main/registration_admin/_action/update_verification.lua Thu Dec 02 13:33:05 2021 +0100 +++ b/app/main/registration_admin/_action/update_verification.lua Thu Dec 02 13:33:47 2021 +0100 @@ -99,7 +99,13 @@ elseif param.get("accredit") then local member = Member:by_id(verification.requesting_member_id) - member.identification = param.get("identification") + + local identification = param.get("identification") + if identification and #identification == 0 then + identification = nil + end + member.identification = identification + member.notify_email = param.get("email") check_db_error(member:try_save())