From 104c3adb3f1b235d4f88dbcabe3617a4e04570e4 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 2 Apr 2024 21:40:47 +0000 Subject: [PATCH] template fixes + bug fixes + style fixes --- Controller/BackendController.php | 4 ++-- Controller/SearchController.php | 2 +- Theme/Backend/Lang/de.lang.php | 2 +- Theme/Backend/Lang/en.lang.php | 2 +- Theme/Backend/kanban-board.tpl.php | 2 +- tests/Models/KanbanCardTest.php | 1 - 6 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Controller/BackendController.php b/Controller/BackendController.php index 036a178..df19f98 100755 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -84,7 +84,7 @@ final class BackendController extends Controller ->where('tags/title/language', $request->header->l11n->language) ->sort('createdAt', OrderType::DESC) ->limit(20) - ->execute(); + ->executeGetArray(); $view->data['boards'] = $list; @@ -162,7 +162,7 @@ final class BackendController extends Controller ->where('tags/title/language', $request->header->l11n->language) ->sort('createdAt', OrderType::DESC) ->limit(25) - ->execute(); + ->executeGetArray(); $view->data['boards'] = $list; diff --git a/Controller/SearchController.php b/Controller/SearchController.php index 15f9f5b..ba9989b 100644 --- a/Controller/SearchController.php +++ b/Controller/SearchController.php @@ -54,7 +54,7 @@ final class SearchController extends Controller ->where('tags/title/language', $response->header->l11n->language) ->sort('createdAt', OrderType::DESC) ->limit(8) - ->execute(); + ->executeGetArray(); $results = []; foreach ($docs as $doc) { diff --git a/Theme/Backend/Lang/de.lang.php b/Theme/Backend/Lang/de.lang.php index 122757e..303ff21 100755 --- a/Theme/Backend/Lang/de.lang.php +++ b/Theme/Backend/Lang/de.lang.php @@ -20,7 +20,7 @@ return ['Kanban' => [ 'Back' => 'Zurück', 'Date' => 'Datum', 'Description' => 'Beschreibung', - 'Board' => 'Board', + 'Board' => 'Board', 'Name' => 'Name', 'Status' => 'Status', 'Tags' => 'Stichworte', diff --git a/Theme/Backend/Lang/en.lang.php b/Theme/Backend/Lang/en.lang.php index 7e6ccb8..c072d95 100755 --- a/Theme/Backend/Lang/en.lang.php +++ b/Theme/Backend/Lang/en.lang.php @@ -20,7 +20,7 @@ return ['Kanban' => [ 'Back' => 'Back', 'Date' => 'Date', 'Description' => 'Description', - 'Board' => 'Board', + 'Board' => 'Board', 'Name' => 'Name', 'Status' => 'Status', 'Tags' => 'Tags', diff --git a/Theme/Backend/kanban-board.tpl.php b/Theme/Backend/kanban-board.tpl.php index a846338..74ddfd5 100755 --- a/Theme/Backend/kanban-board.tpl.php +++ b/Theme/Backend/kanban-board.tpl.php @@ -30,7 +30,7 @@ $columns = $board->getColumns();
printHtml($column->name); ?> - add_circle + add_circle
id); diff --git a/tests/Models/KanbanCardTest.php b/tests/Models/KanbanCardTest.php index 83377c6..0140446 100755 --- a/tests/Models/KanbanCardTest.php +++ b/tests/Models/KanbanCardTest.php @@ -17,7 +17,6 @@ namespace Modules\Kanban\tests\Models; use Modules\Kanban\Models\CardStatus; use Modules\Kanban\Models\CardType; use Modules\Kanban\Models\KanbanCard; -use Modules\Kanban\Models\NullKanbanCardComment; use Modules\Tasks\Models\Task; /**