mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-08 07:21:03 +08:00
Fix issue with missing archived items on task page [SCI-4854]
This commit is contained in:
parent
12a8d50098
commit
c7fcc3f89b
2 changed files with 5 additions and 6 deletions
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
function initRepositoriesDataTable(tableContainer, archived = false) {
|
||||
var tableTemplate = $('#RepositoriesListTable').html();
|
||||
$.get($(tableTemplate).data('source'), {archived: archived}, function(data) {
|
||||
$.get($(tableTemplate).data('source'), { archived: archived }, function(data) {
|
||||
if (REPOSITORIES_TABLE) REPOSITORIES_TABLE.destroy();
|
||||
CHECKBOX_SELECTOR = null;
|
||||
$('.content-body').html(tableTemplate);
|
||||
|
|
|
|||
|
|
@ -61,11 +61,10 @@ class RepositoryDatatableService
|
|||
end
|
||||
|
||||
def fetch_rows(search_value)
|
||||
repository_rows = if @repository.archived?
|
||||
@repository.repository_rows
|
||||
else
|
||||
@repository.repository_rows.where(archived: @params[:archived] || false)
|
||||
end
|
||||
repository_rows = @repository.repository_rows
|
||||
if @params[:archived] && !@repository.archived?
|
||||
repository_rows = repository_rows.where(archived: @params[:archived])
|
||||
end
|
||||
|
||||
@all_count =
|
||||
if @my_module && @params[:assigned] == 'assigned'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue