liquid_feedback_frontend
changeset 1363:4664e021473f
Fixed code order
author | bsw |
---|---|
date | Mon Aug 06 14:13:05 2018 +0200 (2018-08-06) |
parents | f6c0681aad68 |
children | 291db816e078 |
files | app/main/registration_admin/_action/update_verification.lua |
line diff
1.1 --- a/app/main/registration_admin/_action/update_verification.lua Mon Aug 06 14:12:03 2018 +0200 1.2 +++ b/app/main/registration_admin/_action/update_verification.lua Mon Aug 06 14:13:05 2018 +0200 1.3 @@ -26,10 +26,6 @@ 1.4 unit_privilege.initiative_right = true 1.5 unit_privilege:save() 1.6 end 1.7 - elseif field.type ~= "image" then 1.8 - value = string.gsub(value, "^%s+", "") 1.9 - value = string.gsub(value, "%s+$", "") 1.10 - value = string.gsub(value, "%s+", " ") 1.11 elseif field.name == "sequential_number" then 1.12 value = old_verification_data.sequential_number 1.13 if not value then 1.14 @@ -45,6 +41,10 @@ 1.15 end 1.16 value = last_sequential_number + 1 1.17 end 1.18 + elseif field.type ~= "image" then 1.19 + value = string.gsub(value, "^%s+", "") 1.20 + value = string.gsub(value, "%s+$", "") 1.21 + value = string.gsub(value, "%s+", " ") 1.22 end 1.23 verification.verification_data[field.name] = value 1.24 end