mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fixed 'Part' column sorting
This commit is contained in:
parent
b7d25a75c4
commit
15e1c05791
@ -168,7 +168,8 @@ function loadParametricPartTable(table, options={}) {
|
||||
*
|
||||
* Args:
|
||||
* - table: HTML reference to the table
|
||||
* - data: Parameters data
|
||||
* - table_headers: Table headers/columns
|
||||
* - table_data: Parameters data
|
||||
*/
|
||||
|
||||
var table_headers = options.headers
|
||||
@ -181,9 +182,10 @@ function loadParametricPartTable(table, options={}) {
|
||||
for (header of table_headers) {
|
||||
if (header === 'part') {
|
||||
columns.push({
|
||||
field: 'part',
|
||||
field: header,
|
||||
title: '{% trans 'Part' %}',
|
||||
sortable: true,
|
||||
sortName: 'name',
|
||||
formatter: function(value, row, index, field) {
|
||||
|
||||
var name = '';
|
||||
|
Loading…
Reference in New Issue
Block a user