From 28a3491819f8d7d8914c1dcdf6e86321021363b7 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Mon, 5 Sep 2022 11:03:18 +0800 Subject: [PATCH 1/4] * Fix bug #26994. --- module/story/model.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/story/model.php b/module/story/model.php index 8063336021..87de11e749 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -1976,7 +1976,8 @@ class storyModel extends model { if(!empty($oldStory->plan) and isset($branchPlanPairs[$plan->branch]) and $branchPlanPairs[$plan->branch] != $planID) $unlinkPlans[$branchPlanPairs[$plan->branch]] = empty($unlinkPlans[$branchPlanPairs[$plan->branch]]) ? $storyID : "{$unlinkPlans[$branchPlanPairs[$plan->branch]]},$storyID"; if(isset($branchPlanPairs[$plan->branch])) $branchPlanPairs[$plan->branch] = $planID; - $story->plan = $oldStory->plan ? ',' . implode(',', $branchPlanPairs) : ",$planID"; + $story->plan = $oldStory->plan ? ',' . implode(',', $branchPlanPairs) : $planID; + $story->plan = trim($story->plan, ','); if($story->plan != $oldStory->plan and !empty($planID)) $link2Plans[$planID] = empty($link2Plans[$planID]) ? $storyID : "{$link2Plans[$planID]},$storyID"; } } From 9ef6b56e2c91282b7b79c4f9d29aa53c867dcc3e Mon Sep 17 00:00:00 2001 From: tianshujie Date: Mon, 5 Sep 2022 13:07:33 +0800 Subject: [PATCH 2/4] * Fix bug #26994. --- module/productplan/model.php | 3 ++- module/story/model.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/module/productplan/model.php b/module/productplan/model.php index 54ff91e7b5..385ee5f43a 100644 --- a/module/productplan/model.php +++ b/module/productplan/model.php @@ -930,7 +930,8 @@ class productplanModel extends model ->fetchPairs(); if(isset($branchPlanPairs[$plan->branch])) $branchPlanPairs[$plan->branch] = $planID; - $plansOfStory = ',' . implode(',', $branchPlanPairs); + $plansOfStory = implode(',', $branchPlanPairs); + $plansOfStory = trim($plansOfStory, ','); $this->dao->update(TABLE_STORY)->set("plan")->eq($plansOfStory)->where('id')->eq((int)$storyID)->exec(); diff --git a/module/story/model.php b/module/story/model.php index 87de11e749..15f992cde2 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -1976,7 +1976,7 @@ class storyModel extends model { if(!empty($oldStory->plan) and isset($branchPlanPairs[$plan->branch]) and $branchPlanPairs[$plan->branch] != $planID) $unlinkPlans[$branchPlanPairs[$plan->branch]] = empty($unlinkPlans[$branchPlanPairs[$plan->branch]]) ? $storyID : "{$unlinkPlans[$branchPlanPairs[$plan->branch]]},$storyID"; if(isset($branchPlanPairs[$plan->branch])) $branchPlanPairs[$plan->branch] = $planID; - $story->plan = $oldStory->plan ? ',' . implode(',', $branchPlanPairs) : $planID; + $story->plan = $oldStory->plan ? implode(',', $branchPlanPairs) : $planID; $story->plan = trim($story->plan, ','); if($story->plan != $oldStory->plan and !empty($planID)) $link2Plans[$planID] = empty($link2Plans[$planID]) ? $storyID : "{$link2Plans[$planID]},$storyID"; } From dd1feb1a04ac96d79d54a07cf9f417f07b79c72b Mon Sep 17 00:00:00 2001 From: tianshujie Date: Mon, 5 Sep 2022 13:25:01 +0800 Subject: [PATCH 3/4] * Fix bug #24894. --- module/block/view/todoblock.html.php | 49 +++++++++++++++------------- 1 file changed, 26 insertions(+), 23 deletions(-) diff --git a/module/block/view/todoblock.html.php b/module/block/view/todoblock.html.php index 81b1c76209..9dd50fb922 100644 --- a/module/block/view/todoblock.html.php +++ b/module/block/view/todoblock.html.php @@ -37,6 +37,7 @@ if(!$selfCall) die(include('./todolist.html.php')); .block-todoes .todo-flexbetween {display: flex; justify-content: space-between;} .block-todoes #todoList {display: flex; overflow: hidden;} .block-todoes .label-todo {width: 50px; min-width: 50px!important; border: none; color: #43A047;} +.block-todoes .todo-title.text-ellipsis {text-overflow: unset;} [lang^='en'] .block-todoes .todo-pri {width: 60px; min-width: 60px;}
@@ -93,29 +94,31 @@ if(!$selfCall) die(include('./todolist.html.php'));
- +
+ +