Skip to content

Commit

Permalink
fix: empty site within status record
Browse files Browse the repository at this point in the history
  • Loading branch information
jackd248 committed Aug 20, 2024
1 parent 20779b2 commit 299e302
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Resources/Public/JavaScript/filter-status.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,11 @@ class FilterStatus {
widget.querySelector('thead').classList.add('hide');
}
resolved.forEach(function (item) {
// ToDo: refactor this
html += '<tr ' + (item.assignedToCurrentUser ? 'class="current"' : '') + '>' +
'<td><a href="' + item.link + '">' + item.statusIcon + ' ' + item.recordIcon + ' <strong>' + item.title + '</strong></a></td>';

if (item.site) {
html += '<td>' + item.site + '</td>';
}

html += '<td><small>' + item.updated + '</small></td>' +
'<td><a href="' + item.link + '">' + item.statusIcon + ' ' + item.recordIcon + ' <strong>' + item.title + '</strong></a></td>' +
'<td>' + item.site + '</td>' +
'<td><small>' + item.updated + '</small></td>' +
'<td>' + (item.assignee ? (item.assigneeAvatar + item.assigneeName) : '') + '</td>' +
'<td>' + (item.data.tx_ximatypo3contentplanner_comments > 0 ? '<a href="' + TYPO3.settings.ajaxUrls.ximatypo3contentplanner_comments + '" class="contentPlanner--comments" data-table="' + item.data.tablename + '" data-id="' + item.data.uid + '">' + item.comments + '</a>' : '') + '</td>' +
'</tr>';
Expand Down

0 comments on commit 299e302

Please sign in to comment.