Community Forums

Deleting review doesn't delete rating in 1.5.1.3

Bug reports here

Deleting review doesn't delete rating in 1.5.1.3

Postby AnonyMoose » Tue Apr 24, 2012 11:20 am

I noticed that deleting review from Admin panel doesn't change product rating in OC 1.5.1.3, has this been fixed in any recent release? This can be an issue if you want to delete spammy reviews affecting product rating, also looks odd when products with 0 reviews have rating displayed.
AnonyMoose
 
Posts: 96
Joined: Wed Jul 20, 2011 9:35 am

Re: Deleting review doesn't delete rating in 1.5.1.3

Postby avvici -arvixe- » Tue Apr 24, 2012 12:47 pm

Oh yes it does. Ask the function:
Code: Select all
public function deleteReview($review_id) {
      $this->db->query("DELETE FROM " . DB_PREFIX . "review WHERE review_id = '" . (int)$review_id . "'");
   }

That covers all fields it the table review, including "rating"
User avatar
avvici -arvixe-
 
Posts: 4408
Joined: Tue Apr 05, 2011 4:09 am
Location: Charlotte, NC

Re: Deleting review doesn't delete rating in 1.5.1.3

Postby AnonyMoose » Tue Apr 24, 2012 1:15 pm

avvici wrote:Oh yes it does. Ask the function:
Code: Select all
public function deleteReview($review_id) {
      $this->db->query("DELETE FROM " . DB_PREFIX . "review WHERE review_id = '" . (int)$review_id . "'");
   }

That covers all fields it the table review, including "rating"



You are right, clearing cache fixed this. Sorry to bother, topic can be removed..
AnonyMoose
 
Posts: 96
Joined: Wed Jul 20, 2011 9:35 am


Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 9 guests

Hosted by Arvixe Web Hosting