Fixed Rating not upgraded if rating is deleted

AndyB

Well-known member
Affected version
2.0.1
When a rating is deleted, the xf_rm_resource table is not updated, so the rating is still shown in the main resource list.

I think the following fields require updating after a rating is deleted:

rating_count
rating_sum
rating_avg
rating_weighted
 
I think I've just sorted this for the next release. It seems specifically related to our logic which needs to differ slightly if the rating is being hard deleted. Thanks.
 
Top Bottom