From 5a201bfebe46e8bce2a6346c2257a269b3754bad Mon Sep 17 00:00:00 2001 From: tianshujie Date: Wed, 3 Jan 2024 15:12:16 +0800 Subject: [PATCH] * Fix bug #42679. --- module/productplan/js/browse.ui.js | 11 +++++++++++ module/productplan/ui/browsebylist.html.php | 2 ++ 2 files changed, 13 insertions(+) diff --git a/module/productplan/js/browse.ui.js b/module/productplan/js/browse.ui.js index 1cac6b8767..ca4769c603 100644 --- a/module/productplan/js/browse.ui.js +++ b/module/productplan/js/browse.ui.js @@ -183,6 +183,17 @@ window.renderCell = function(result, info) } } + if(info.col.name == 'title') + { + html = ''; + if(info.row.data.parent) html += "" + childrenAB + ""; + if(html) result.unshift({html}); + + html = ''; + if(info.row.data.expired && ['wait', 'doing'].includes(info.row.data.status)) html += '' + expiredLang + ''; + if(html) result.push({html}); + } + return result; } diff --git a/module/productplan/ui/browsebylist.html.php b/module/productplan/ui/browsebylist.html.php index 65e92b6190..313d95c625 100644 --- a/module/productplan/ui/browsebylist.html.php +++ b/module/productplan/ui/browsebylist.html.php @@ -11,6 +11,8 @@ declare(strict_types=1); namespace zin; jsVar('checkedSummary', $lang->productplan->checkedSummary); +jsVar('childrenAB', $lang->productplan->childrenAB); +jsVar('expiredLang', $lang->productplan->expired); /* zin: Define the set::module('productplan') feature bar on main menu. */ featureBar