Merge pull request #970 from mlorb/ml-sci-1614

Fix bug with ajax error caused to the other user when deleting column…
This commit is contained in:
mlorb 2018-01-31 10:40:13 +01:00 committed by GitHub
commit 7b83fd8807
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,7 +45,7 @@ class RepositoryTableState < ApplicationRecord
index = repository_state['columns'].count
repository_state['columns'][index] = RepositoryDatatable::
REPOSITORY_TABLE_DEFAULT_STATE['columns'].first
repository_state['ColReorder'].insert(2, index)
repository_state['ColReorder'].insert(2, index.to_s)
end
table_state.update(state: repository_state)
end