From deb452fb011ba36617752eb4c12247655aba6c0d Mon Sep 17 00:00:00 2001 From: zhouxin Date: Wed, 26 Jan 2022 01:49:27 +0000 Subject: [PATCH 1/3] Fix bug #18843. --- module/kanban/model.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/module/kanban/model.php b/module/kanban/model.php index e4da1c8797..4cd10beb6e 100644 --- a/module/kanban/model.php +++ b/module/kanban/model.php @@ -2807,11 +2807,11 @@ class kanbanModel extends model /** * Set column width. - * - * @param int $kanbanID - * @param string $from + * + * @param int $kanbanID + * @param string $from * @access public - * @return bool|void + * @return bool|void */ public function setColumnWidth($kanbanID, $from = 'kanban') { @@ -2830,6 +2830,9 @@ class kanbanModel extends model */ public function setHeaderActions($kanban) { + $blackButton = ''; + if($this->app->cookie->theme == 'blue') $blackButton = 'style="color:#000000"'; + $printSetHeightBtn = false; if(common::hasPriv('kanban', 'setLaneHeight')) { @@ -2845,13 +2848,13 @@ class kanbanModel extends model $actions = ''; $actions .= "
"; - $actions .= " {$this->lang->kanban->fullScreen}"; + $actions .= " {$this->lang->kanban->fullScreen}"; $printSettingBtn = (common::hasPriv('kanban', 'createRegion') or $printSetHeightBtn or common::hasPriv('kanban', 'performable') or common::hasPriv('kanban', 'edit') or common::hasPriv('kanban', 'close') or common::hasPriv('kanban', 'enableArchived') or common::hasPriv('kanban', 'delete')); if($printSettingBtn) { - $actions .= "" . ' ' . $this->lang->kanban->setting . ''; + $actions .= "" . ' ' . $this->lang->kanban->setting . ''; $actions .= "