diff --git a/InvenTree/templates/InvenTree/search.html b/InvenTree/templates/InvenTree/search.html index 03b64419c7..e13291a76a 100644 --- a/InvenTree/templates/InvenTree/search.html +++ b/InvenTree/templates/InvenTree/search.html @@ -135,26 +135,12 @@ InvenTree | {% trans "Search Results" %} } ); - $("#company-results-table").inventreeTable({ - url: "{% url 'api-company-list' %}", - queryParams: { - search: "{{ query }}", - }, - columns: [ - { - field: 'name', - title: 'Name', - formatter: function(value, row, index, field) { - return imageHoverIcon(row.image) + renderLink(value, row.url); - }, - }, - { - field: 'description', - title: 'Description', - }, - ] + loadCompanyTable('#company-results-table', "{% url 'api-company-list' %}", { + params: { + serach: "{{ query }}", + } }); - + $("#supplier-part-results-table").inventreeTable({ url: "{% url 'api-part-supplier-list' %}", queryParams: {