# HG changeset patch # User bsw # Date 1533555757 -7200 # Node ID 06675c87f45f7e6e34b30785e401aeb14aab0913 # Parent 3b6575d156bcc0e4f95f4d65f5d8bcf51d54a8ae Fixed wrong argument order in by_pk call diff -r 3b6575d156bc -r 06675c87f45f app/main/registration_admin/_action/update_verification.lua --- a/app/main/registration_admin/_action/update_verification.lua Mon Aug 06 13:39:56 2018 +0200 +++ b/app/main/registration_admin/_action/update_verification.lua Mon Aug 06 13:42:37 2018 +0200 @@ -13,7 +13,7 @@ elseif field.name == "unit" then value = string.gsub(value, "[^0-9]", "") if old_verification_data.unit and old_verification_data.unit ~= "" then - local old_unit_privilege = Privilege:by_pk(verification.verified_member_id, old_verification_data.unit) + local old_unit_privilege = Privilege:by_pk(old_verification_data.unit, verification.verified_member_id) if old_unit_privilege then old_unit_privilege:destroy() end