liquid_feedback_frontend
diff app/main/registration/_action/register.lua @ 1334:b0ed2b11ea28
Renamed save hook
author | bsw |
---|---|
date | Fri Aug 03 17:22:41 2018 +0200 (2018-08-03) |
parents | 2efee7c3bf44 |
children | 7532831a7618 |
line diff
1.1 --- a/app/main/registration/_action/register.lua Fri Aug 03 17:15:49 2018 +0200 1.2 +++ b/app/main/registration/_action/register.lua Fri Aug 03 17:22:41 2018 +0200 1.3 @@ -151,6 +151,9 @@ 1.4 elseif field.name == "mobile_phone" then 1.5 value = string.gsub(value, "[^0-9]", "") 1.6 elseif field.type == "image" then 1.7 + if field.save_func then 1.8 + value = field.save_func(value) 1.9 + end 1.10 else 1.11 value = string.gsub(value, "^%s+", "") 1.12 value = string.gsub(value, "%s+$", "")