From 875ac851b4f3f44168b3ae247a7569837fddeab5 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Tue, 11 Oct 2022 15:07:12 +0800 Subject: [PATCH] * Fix bug #28460. --- module/product/js/project.js | 1 - module/product/view/project.html.php | 2 +- module/program/js/project.js | 2 +- module/program/view/project.html.php | 2 +- module/project/view/browsebylist.html.php | 4 ++-- 5 files changed, 5 insertions(+), 6 deletions(-) diff --git a/module/product/js/project.js b/module/product/js/project.js index ba0df1535d..e150fb18e3 100644 --- a/module/product/js/project.js +++ b/module/product/js/project.js @@ -39,4 +39,3 @@ $(function() }); }); }); - diff --git a/module/product/view/project.html.php b/module/product/view/project.html.php index bb9e0f67d1..ad6e28023b 100644 --- a/module/product/view/project.html.php +++ b/module/product/view/project.html.php @@ -118,7 +118,7 @@ diff --git a/module/program/js/project.js b/module/program/js/project.js index 0af27f8677..6bdfd10139 100644 --- a/module/program/js/project.js +++ b/module/program/js/project.js @@ -11,7 +11,7 @@ $(function() var statistics = summary; var checkedStatistics = checkedSummary.replace('%total%', checkedTotal); - if(browseType == 'all' || browseType == 'unclosed') + if(browseType == 'all') { var checkedWait = $checkedRows.filter("[data-status=wait]").length; var checkedDoing = $checkedRows.filter("[data-status=doing]").length; diff --git a/module/program/view/project.html.php b/module/program/view/project.html.php index c6b40c1f05..80d2695216 100644 --- a/module/program/view/project.html.php +++ b/module/program/view/project.html.php @@ -91,7 +91,7 @@ $closedCount = 0; } ?> -
project->allSummary, count($projectStats), $waitCount, $doingCount, $suspendedCount, $closedCount) : sprintf($lang->project->summary, count($projectStats));?>
+
project->allSummary, count($projectStats), $waitCount, $doingCount, $suspendedCount, $closedCount) : sprintf($lang->project->summary, count($projectStats));?>
show('right', 'pagerjs');?> diff --git a/module/project/view/browsebylist.html.php b/module/project/view/browsebylist.html.php index 354022aa8b..4080928b75 100644 --- a/module/project/view/browsebylist.html.php +++ b/module/project/view/browsebylist.html.php @@ -146,7 +146,7 @@ $closedCount = 0; } ?> -
project->allSummary, count($projectStats), $waitCount, $doingCount, $suspendedCount, $closedCount) : sprintf($lang->project->summary, count($projectStats));?>
+
project->allSummary, count($projectStats), $waitCount, $doingCount, $suspendedCount, $closedCount) : sprintf($lang->project->summary, count($projectStats));?>
show('right', 'pagerjs');?> @@ -174,7 +174,7 @@ $(function() var statistics = summary; var checkedStatistics = checkedSummary.replace('%total%', checkedTotal); - if(browseType == 'all' || browseType == 'undone') + if(browseType == 'all') { var checkedWait = $checkedRows.filter("[data-status=wait]").length; var checkedDoing = $checkedRows.filter("[data-status=doing]").length;