liquid_feedback_frontend

changeset 1690:64f47fd0fa5a

Fixed handling of units when updating personal data
author bsw
date Tue Sep 21 12:33:10 2021 +0200 (2021-09-21)
parents d47e780a6c49
children 0313770d09ad
files app/main/registration_admin/_action/update_verification.lua
line diff
     1.1 --- a/app/main/registration_admin/_action/update_verification.lua	Mon Sep 20 15:11:30 2021 +0200
     1.2 +++ b/app/main/registration_admin/_action/update_verification.lua	Tue Sep 21 12:33:10 2021 +0200
     1.3 @@ -12,7 +12,7 @@
     1.4        value = string.gsub(value, "[^0-9]", "")
     1.5      elseif field.name == "unit" then
     1.6        value = string.gsub(value, "[^0-9]", "")
     1.7 -      if old_verification_data.unit and old_verification_data.unit ~= "" then
     1.8 +      if old_verification_data.unit and old_verification_data.unit ~= "" and old_verification_data.unit ~= value then
     1.9          local old_unit_privilege = Privilege:by_pk(old_verification_data.unit, verification.requesting_member_id)
    1.10          if old_unit_privilege then
    1.11            old_unit_privilege:destroy()

Impressum / About Us