# HG changeset patch # User bsw # Date 1533557585 -7200 # Node ID 4664e021473fe449ec3ef39cf37b2cf655e04ef3 # Parent f6c0681aad684e1ed1882cf550a787dc754f1117 Fixed code order diff -r f6c0681aad68 -r 4664e021473f app/main/registration_admin/_action/update_verification.lua --- a/app/main/registration_admin/_action/update_verification.lua Mon Aug 06 14:12:03 2018 +0200 +++ b/app/main/registration_admin/_action/update_verification.lua Mon Aug 06 14:13:05 2018 +0200 @@ -26,10 +26,6 @@ unit_privilege.initiative_right = true unit_privilege:save() end - elseif field.type ~= "image" then - value = string.gsub(value, "^%s+", "") - value = string.gsub(value, "%s+$", "") - value = string.gsub(value, "%s+", " ") elseif field.name == "sequential_number" then value = old_verification_data.sequential_number if not value then @@ -45,6 +41,10 @@ end value = last_sequential_number + 1 end + elseif field.type ~= "image" then + value = string.gsub(value, "^%s+", "") + value = string.gsub(value, "%s+$", "") + value = string.gsub(value, "%s+", " ") end verification.verification_data[field.name] = value end