# HG changeset patch # User bsw # Date 1632220390 -7200 # Node ID 64f47fd0fa5a8c12916ed44fd37e35a704c902d2 # Parent d47e780a6c499a690331ecd27df2bfedcf4c352a Fixed handling of units when updating personal data diff -r d47e780a6c49 -r 64f47fd0fa5a app/main/registration_admin/_action/update_verification.lua --- a/app/main/registration_admin/_action/update_verification.lua Mon Sep 20 15:11:30 2021 +0200 +++ b/app/main/registration_admin/_action/update_verification.lua Tue Sep 21 12:33:10 2021 +0200 @@ -12,7 +12,7 @@ value = string.gsub(value, "[^0-9]", "") elseif field.name == "unit" then value = string.gsub(value, "[^0-9]", "") - if old_verification_data.unit and old_verification_data.unit ~= "" then + if old_verification_data.unit and old_verification_data.unit ~= "" and old_verification_data.unit ~= value then local old_unit_privilege = Privilege:by_pk(old_verification_data.unit, verification.requesting_member_id) if old_unit_privilege then old_unit_privilege:destroy()