Skip to content
Snippets Groups Projects
Commit 6796e843 authored by tux091's avatar tux091
Browse files

Bug fixed

parent 7e2b5279
No related branches found
No related tags found
No related merge requests found
......@@ -164,6 +164,9 @@ gridModifier.merge_columns('title',
gridModifier.hide_columns('authors_cppm',
'e_print')
gridModifier.set_rownumbering()
#
# Setup a filter panel for the publication grid
#
......
......@@ -117,10 +117,6 @@ class CvtSvc(BaseSvc):
delete_columns = grid_modifiers[tablename].delete_columns
template_columns = grid_modifiers[tablename].template_columns
# row numbering in the first colum,
if grid_modifiers[tablename].row_numbering:
models.append({'xtype': 'rownumberer'})
# standard column
for field in table:
fieldname = field.name
......@@ -135,6 +131,11 @@ class CvtSvc(BaseSvc):
col = {'xtype': 'templatecolumn', 'sortable': True}
col.update(tpl.extjs)
models.insert(tpl.position, col)
# row numbering in the first column
if grid_modifiers[tablename].row_numbering:
models.insert(0, {'xtype': 'rownumberer'})
return models
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment