Comment theme('table') called on every comment

Created on 4 August 2010, over 14 years ago
Updated 11 March 2025, about 1 month ago

The table for the summary of changes at the top of comments is rendered for every comment, even if there is no case changes on that comment.

The if statement surrounding the return statement fixes that problem.

  // Line 794 inside theme_casetracker_comment_changes()
  if (!empty($rows)) {
    return theme('table', NULL, $rows, array('class' => 'case_changes'));
  }

This is my first patch (it's against CVS). Hope it works out well.

🐛 Bug report
Status

Fixed

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024