2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

Improve / simplify logic for file attachments against test result object

This commit is contained in:
Oliver Walters
2020-05-23 11:30:42 +10:00
parent 50987f47b0
commit e63342418f
6 changed files with 29 additions and 60 deletions

View File

@ -56,8 +56,8 @@ function loadStockTestResultsTable(table, options) {
html += `<span class='badge'>${row.user_detail.username}</span>`;
}
if (row.attachment_detail) {
html += `<a href='${row.attachment_detail.attachment}'><span class='fas fa-file-alt label-right'></span></a>`;
if (row.attachment) {
html += `<a href='${row.attachment}'><span class='fas fa-file-alt label-right'></span></a>`;
}
return html;