mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-12 09:20:45 +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) {
|
function initRepositoriesDataTable(tableContainer, archived = false) {
|
||||||
var tableTemplate = $('#RepositoriesListTable').html();
|
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();
|
if (REPOSITORIES_TABLE) REPOSITORIES_TABLE.destroy();
|
||||||
CHECKBOX_SELECTOR = null;
|
CHECKBOX_SELECTOR = null;
|
||||||
$('.content-body').html(tableTemplate);
|
$('.content-body').html(tableTemplate);
|
||||||
|
|
|
||||||
|
|
@ -61,11 +61,10 @@ class RepositoryDatatableService
|
||||||
end
|
end
|
||||||
|
|
||||||
def fetch_rows(search_value)
|
def fetch_rows(search_value)
|
||||||
repository_rows = if @repository.archived?
|
repository_rows = @repository.repository_rows
|
||||||
@repository.repository_rows
|
if @params[:archived] && !@repository.archived?
|
||||||
else
|
repository_rows = repository_rows.where(archived: @params[:archived])
|
||||||
@repository.repository_rows.where(archived: @params[:archived] || false)
|
end
|
||||||
end
|
|
||||||
|
|
||||||
@all_count =
|
@all_count =
|
||||||
if @my_module && @params[:assigned] == 'assigned'
|
if @my_module && @params[:assigned] == 'assigned'
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue