Tom1234
04-30-2005, 06:25 PM
If you issue a warning and then change the default points associated with that warning type and then try to totally remove the warning from the user's account, it deducts the current point value rather than the point value at the time of the warning issuance.
This resulted in issuing a warning for 10 points, but then removing the warning only removed 5 points, leaving 5 points on the account yet no warnings. I had to go into the DB to change the value of warning level points to 0.
I believe you should store the point value at warn time with the warning. Then deduct that amount of points if it is removed, rather than the current point value for that warning type.
This resulted in issuing a warning for 10 points, but then removing the warning only removed 5 points, leaving 5 points on the account yet no warnings. I had to go into the DB to change the value of warning level points to 0.
I believe you should store the point value at warn time with the warning. Then deduct that amount of points if it is removed, rather than the current point value for that warning type.