In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
1212 [In-Portal CMS] Data Management bug report always 2012-02-22 06:04 2012-07-25 05:31
alex  
alex  
normal  
closed 4.3.9  
fixed  
 
none 5.2.0-B2  
https://groups.google.com/d/topic/in-portal-bugs/sXlORuKgm5A/discussion
Fixes invalid review counting for category item
1
0001212: Category item reviews counter sometimes isn't updated
Each category item (e.g. link, article) has CachedReviewsQty field to store total review (comment) count for that item.

However this counter isn't properly updated, when Administrator deletes a review (comment) from dedicated Reviews (Comments) section in Admin Console.

Also I've noticed "Division by zero" PHP warning when I change rating in a link's review, when link has only 1 review.
patch review_counting_fix_core.patch (3,609) 2012-02-22 06:04
http://tracker.in-portal.org/file_download.php?file_id=1521&type=bug
patch review_counting_fix_modules.patch (2,352) 2012-02-22 06:04
http://tracker.in-portal.org/file_download.php?file_id=1522&type=bug
Issue History
2012-07-25 05:31 alex Note Added: 0004969
2012-07-25 05:31 alex Status resolved => closed
2012-02-22 06:08 alex Changeset attached 5.2.x r15126
2012-02-22 06:08 alex Note Added: 0004474
2012-02-22 06:08 alex Status reviewed and tested => resolved
2012-02-22 06:08 alex Fixed in Version => 5.2.0-B2
2012-02-22 06:08 alex Resolution open => fixed
2012-02-22 06:08 alex Assigned To !COMMUNITY => alex
2012-02-22 06:07 alex Changeset attached 5.2.x r15125
2012-02-22 06:07 alex Changeset attached 5.2.x r15124
2012-02-22 06:07 alex Changeset attached 5.2.x r15123
2012-02-22 06:06 alex Changeset attached 5.2.x r15122
2012-02-22 06:05 alex Note Added: 0004473
2012-02-22 06:05 alex Status needs testing => reviewed and tested
2012-02-22 06:05 alex Assigned To => !COMMUNITY
2012-02-22 06:05 alex Developer => alex
2012-02-22 06:05 alex Status active => needs testing
2012-02-22 06:05 alex Reference => https://groups.google.com/d/topic/in-portal-bugs/sXlORuKgm5A/discussion
2012-02-22 06:04 alex File Added: review_counting_fix_modules.patch
2012-02-22 06:04 alex New Issue
2012-02-22 06:04 alex File Added: review_counting_fix_core.patch
2012-02-22 06:04 alex Change Log Message => Fixes invalid review counting for category item
2012-02-22 06:04 alex Estimate Points => 1

Notes
(0004473)
alex   
2012-02-22 06:05   
Will test all together later.
(0004474)
alex   
2012-02-22 06:08   
Fix committed to 5.2.x branch. Commit Message:

Fixes 0001212: Category item reviews counter sometimes isn't updated
(0004969)
alex   
2012-07-25 05:31   
Since 5.2.0 version was released.