From fc26123e4fd30b3fae7dd344a77b4f8a946fee01 Mon Sep 17 00:00:00 2001 From: qixinzhi Date: Wed, 31 Jul 2024 02:09:45 +0000 Subject: [PATCH] * [bug#53323,0.5h] fix screen 3 scroll. --- module/screen/control.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/screen/control.php b/module/screen/control.php index 71dd1a4ae1..34d9280508 100644 --- a/module/screen/control.php +++ b/module/screen/control.php @@ -88,6 +88,9 @@ class screen extends control */ public function view(int $screenID, int $year = 0, int $month = 0, int $dept = 0, string $account = '') { + if(empty($year)) $year = date('Y'); + if(empty($month)) $month = date('m'); + if($screenID == 3) { echo $this->fetch('report', 'annualData', "year={$year}&dept={$dept}&account={$account}"); @@ -128,7 +131,6 @@ class screen extends control */ public function viewOld(int $screenID, int $year = 0, int $month = 0, int $dept = 0, string $account = '') { - if(empty($year)) $year = date('Y'); if(empty($year)) $year = date('Y'); if(empty($month)) $month = date('m');