From 775b8b3201c3eb33043f027659b30079bb73b34e Mon Sep 17 00:00:00 2001 From: mlorb Date: Mon, 29 Jan 2018 16:01:33 +0100 Subject: [PATCH] fix bug with ajax error caused to the other user when deleting column in custom repository --- app/models/repository_table_state.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/repository_table_state.rb b/app/models/repository_table_state.rb index 37a37e9c3..d88847ad7 100644 --- a/app/models/repository_table_state.rb +++ b/app/models/repository_table_state.rb @@ -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