From 9faee43d47f4e2789bf79b335cd2be77cc02dd54 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Tue, 11 Jan 2022 17:07:40 +0800 Subject: [PATCH] * Modify default value. --- module/kanban/control.php | 4 +++- module/kanban/view/setlaneheight.html.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/module/kanban/control.php b/module/kanban/control.php index 1730ffa893..640e004377 100644 --- a/module/kanban/control.php +++ b/module/kanban/control.php @@ -479,7 +479,9 @@ class kanban extends control if($from == 'execution') $this->loadModel('execution'); - $this->view->kanban = $this->$from->getByID($kanbanID); + $kanban = $this->$from->getByID($kanbanID); + + $this->view->heightType = $kanban->displayCards > 2 ? 'custom' : 'auto'; $this->display(); } diff --git a/module/kanban/view/setlaneheight.html.php b/module/kanban/view/setlaneheight.html.php index 8409fc9ad8..d41e84b686 100644 --- a/module/kanban/view/setlaneheight.html.php +++ b/module/kanban/view/setlaneheight.html.php @@ -20,7 +20,7 @@ - +
kanban->laneHeight;?>kanbanlane->heightTypeList, 'custom', "onclick='setCardCount(this.value);'"));?>kanbanlane->heightTypeList, $heightType, "onclick='setCardCount(this.value);'"));?>