fix rating archived posts
This commit is contained in:
parent
7a0535571c
commit
2dc8a3e72c
2 changed files with 4 additions and 2 deletions
|
|
@ -28,6 +28,7 @@
|
|||
arbitrarily.
|
||||
- fix: Event Related Links are now proper collateral in their own table
|
||||
instead of a silly HTML area
|
||||
- fix: rating archived posts causes error
|
||||
|
||||
7.4.21
|
||||
- fix: Mails sent from WebGUI now wrap at 78 characters, as the SMTP
|
||||
|
|
|
|||
|
|
@ -818,8 +818,9 @@ sub updateThreadRating {
|
|||
|
||||
my $calcRating = 0;
|
||||
my $postIds = $self->getLineage(["descendants","self"], {
|
||||
includeOnlyClasses => ["WebGUI::Asset::Post","WebGUI::Asset::Post::Thread"],
|
||||
});
|
||||
includeOnlyClasses => ["WebGUI::Asset::Post","WebGUI::Asset::Post::Thread"],
|
||||
includeArchived => 1,
|
||||
});
|
||||
|
||||
$calcRating += $session->db->quickScalar(
|
||||
"SELECT SUM(rating) FROM Post_rating WHERE assetId IN (".$session->db->quoteAndJoin($postIds).")"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue