liquid_feedback_frontend

changeset 836:cb5bac9da089

Trim identification and set to null if empty string
author bsw
date Fri Jul 13 20:53:29 2012 +0200 (2012-07-13)
parents c54f484b1691
children 92fffd09deee
files app/main/admin/_action/member_update.lua
line diff
     1.1 --- a/app/main/admin/_action/member_update.lua	Fri Jul 13 20:48:23 2012 +0200
     1.2 +++ b/app/main/admin/_action/member_update.lua	Fri Jul 13 20:53:29 2012 +0200
     1.3 @@ -20,6 +20,14 @@
     1.4  if name then
     1.5    member.name = name
     1.6  end
     1.7 +local identification = param.get("identification")
     1.8 +if identification then
     1.9 +  identification = util.trim(identification)
    1.10 +  if identification == "" then
    1.11 +    identification = nil
    1.12 +  end
    1.13 +end
    1.14 +member.identification = identification
    1.15  
    1.16  local err = member:try_save()
    1.17  

Impressum / About Us