diff --git a/module/kanban/model.php b/module/kanban/model.php index 07b133997a..51d7315a3c 100644 --- a/module/kanban/model.php +++ b/module/kanban/model.php @@ -2940,7 +2940,7 @@ class kanbanModel extends model $actions .= "
"; $actions .= " {$this->lang->kanban->fullScreen}"; - $CRKanban = !($this->config->CRKanban === '0' and $kanban->status === 'closed'); + $CRKanban = !(isset($this->config->CRKanban) and $this->config->CRKanban === '0' and $kanban->status === 'closed'); $printRegionBtn = ($CRKanban and (common::hasPriv('kanban', 'createRegion') or $printSetHeightBtn or common::hasPriv('kanban', 'performable') or common::hasPriv('kanban', 'enableArchived') or common::hasPriv('kanban', 'import') or common::hasPriv('kanban', 'setColumnWidth'))); $printKanbanBtn = (common::hasPriv('kanban', 'edit') or common::hasPriv('kanban', 'close') or common::hasPriv('kanban', 'delete')); diff --git a/module/kanban/view/view.html.php b/module/kanban/view/view.html.php index 455d9aa99b..636587c745 100644 --- a/module/kanban/view/view.html.php +++ b/module/kanban/view/view.html.php @@ -21,7 +21,7 @@ $laneCount = 0; foreach($regions as $region) $laneCount += $region->laneCount; js::set('vision', $this->config->vision); -js::set('CRKanban', $this->config->CRKanban); +js::set('CRKanban', isset($this->config->CRKanban) ? $this->config->CRKanban : 1); js::set('regions', $regions); js::set('kanban', $kanban); js::set('kanbanLang', $lang->kanban);