diff --git a/Admin/Install/Navigation.install.json b/Admin/Install/Navigation.install.json index 94791bc..4b9177f 100755 --- a/Admin/Install/Navigation.install.json +++ b/Admin/Install/Navigation.install.json @@ -5,7 +5,7 @@ "type": 2, "subtype": 1, "name": "Kanban", - "uri": "{/base}/kanban/dashboard?{?}", + "uri": "{/base}/kanban/dashboard", "target": "self", "icon": null, "order": 45, @@ -19,7 +19,7 @@ "type": 3, "subtype": 1, "name": "Boards", - "uri": "{/base}/kanban/dashboard?{?}", + "uri": "{/base}/kanban/dashboard", "target": "self", "icon": null, "order": 1, @@ -34,7 +34,7 @@ "type": 3, "subtype": 1, "name": "Archive", - "uri": "{/base}/kanban/archive?{?}", + "uri": "{/base}/kanban/archive", "target": "self", "icon": null, "order": 2, @@ -49,7 +49,7 @@ "type": 3, "subtype": 1, "name": "Create", - "uri": "{/base}/kanban/create?{?}", + "uri": "{/base}/kanban/create", "target": "self", "icon": null, "order": 3, diff --git a/Admin/Install/SearchCommands.php b/Admin/Install/SearchCommands.php index 7fc06f9..2565cf2 100644 --- a/Admin/Install/SearchCommands.php +++ b/Admin/Install/SearchCommands.php @@ -22,6 +22,7 @@ return [ [ 'dest' => '\Modules\Kanban\Controller\SearchController:searchGeneral', 'verb' => RouteVerb::ANY, + 'active' => true, 'permission' => [ 'module' => SearchController::NAME, 'type' => PermissionType::READ, diff --git a/Controller/ApiController.php b/Controller/ApiController.php index e634a9f..b0a1878 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -148,14 +148,15 @@ final class ApiController extends Controller $card->tags = $this->app->moduleManager->get('Tag', 'Api')->createTagsFromRequest($request); } - if (!empty($uploadedFiles = $request->files)) { + // @todo Implement correct path (based on board id) + if (!empty($request->files)) { $uploaded = $this->app->moduleManager->get('Media', 'Api')->uploadFiles( - [], - [], - $uploadedFiles, - $request->header->account, - __DIR__ . '/../../../Modules/Media/Files/Modules/Kanban', - '/Modules/Kanban', + names: [], + fileNames: [], + files: $request->files, + account: $request->header->account, + basePath: __DIR__ . '/../../../Modules/Media/Files/Modules/Kanban', + virtualPath: '/Modules/Kanban', ); foreach ($uploaded as $media) { diff --git a/Controller/SearchController.php b/Controller/SearchController.php index ba9989b..f1059a9 100644 --- a/Controller/SearchController.php +++ b/Controller/SearchController.php @@ -61,7 +61,7 @@ final class SearchController extends Controller $results[] = [ 'title' => $doc->name, 'summary' => '', - 'link' => '{/base}/kanban/card?id=' . $doc->id, + 'link' => '{/base}/kanban/card/view?id=' . $doc->id, 'account' => '', 'createdAt' => $doc->createdAt, 'image' => '',