From b26dea6007c90681a5280ad7f623f2cd93efaf47 Mon Sep 17 00:00:00 2001 From: sunhao Date: Fri, 15 Mar 2024 11:35:19 +0800 Subject: [PATCH] * my: bug #47024, fix cannot scroll in table of page "my-bug". --- module/my/js/bug.ui.js | 2 +- module/my/ui/bug.html.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/my/js/bug.ui.js b/module/my/js/bug.ui.js index 1a0bb20781..c7a6405b6b 100644 --- a/module/my/js/bug.ui.js +++ b/module/my/js/bug.ui.js @@ -41,5 +41,5 @@ window.setStatistics = function(element, checks) { if(checks.length) return checkedSummary.replace('{checked}', checks.length); - return element.options.customData.pageSummary; + return element.options.customData ? element.options.customData.pageSummary : null; } diff --git a/module/my/ui/bug.html.php b/module/my/ui/bug.html.php index c78e1940f0..8838009cb9 100644 --- a/module/my/ui/bug.html.php +++ b/module/my/ui/bug.html.php @@ -106,7 +106,7 @@ dtable set::footToolbar($footToolbar), set::footPager(usePager()), set::emptyTip($lang->bug->notice->noBug), - set::customData($type == 'resolvedBy' ? array('pageSummary' => $summary) : null) + set::customData($type == 'resolvedBy' ? array('pageSummary' => $summary) : array()) ); render();