Closed AnthonMS closed 5 years ago
Done. I fixed this by using the email instead. Since this is also unique. There are no users with the same email. When it has found the same email in the list of input fields. It enabled that one, the one before and the one after. This way it enables the correct ones.
Time Estimate: 4 Hours There is a bug, if there are multiple people with the same name in the Admin panel userlist. When clicking on edit, it will enable editing on wrong user because it takes the first it finds in the array with that name. So this needs to be changed so the function that finds where the user wants to edit, is selected based on the users id from the database, since this id is unique.