•  
      request #18332 The number of messages remains at 0
    Infos
    #18332
    Gaëtan LE PESSOT (glp)
    2021-01-07 13:43
    2020-11-19 17:14
    19773
    Details
    The number of messages remains at 0
    Hello,

    The number of messages remains at 0 in the forum web page for all discussions.
    An example in attached image.

    The "forum_agg_msg_count" is always empty in the database.

    My temporary fix is:
    /usr/share/tuleap/src/www/forum/index.php
    line 97:
    //echo '(' . $purifier->purify((db_result($result, $j, 'total')) ? db_result($result, $j, 'total') : '0') . ' msgs)';
    $sqlMsgs = "SELECT group_forum_id FROM forum WHERE group_forum_id='" . db_result($result, $j, 'group_forum_id') . "';";
    $msgs = db_query($sqlMsgs);
    echo '(' . $purifier->purify(db_numrows($msgs)) . ' msgs)';
    Forums
    12.2
    CentOS 7
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Thomas Gerbet (tgerbet)
    Closed
    2021-01-07
    Attachments
    References

    Follow-ups

    User avatar
    Thomas Gerbet (tgerbet)2021-01-06 10:12
    Hello,

    Thanks for the report. I confirm the issue.

    • Status changed from New to Verified
    • Assigned to changed from None to Thomas Gerbet (tgerbet)