diff --git a/app/helpers/repository_datatable_helper.rb b/app/helpers/repository_datatable_helper.rb index ebf04ad35..3f1904a8e 100644 --- a/app/helpers/repository_datatable_helper.rb +++ b/app/helpers/repository_datatable_helper.rb @@ -108,7 +108,8 @@ module RepositoryDatatableHelper '2': escape_input(record.external_id), '3': record.code, '4': escape_input(record.name), - '5': I18n.l(record.created_at, format: :full) + '5': escape_input(record.created_by.full_name), + '6': I18n.l(record.created_at, format: :full) } end diff --git a/app/models/bmt_repository.rb b/app/models/bmt_repository.rb index dfe7fa889..f5062c875 100644 --- a/app/models/bmt_repository.rb +++ b/app/models/bmt_repository.rb @@ -13,7 +13,7 @@ class BmtRepository < LinkedRepository def default_sortable_columns [ - 'assigned', + 'users.full_name', 'repository_rows.external_id', 'repository_rows.id', 'repository_rows.name', @@ -21,10 +21,6 @@ class BmtRepository < LinkedRepository ] end - def default_search_fileds - super - ['users.full_name'] - end - private def enforce_singleton diff --git a/app/views/repositories/_repository_table.html.erb b/app/views/repositories/_repository_table.html.erb index ccd98e89b..1951a8398 100644 --- a/app/views/repositories/_repository_table.html.erb +++ b/app/views/repositories/_repository_table.html.erb @@ -32,15 +32,17 @@ -