mirror of
https://github.com/Karaka-Management/oms-Kanban.git
synced 2026-01-11 11:28:42 +00:00
fix bugs
This commit is contained in:
parent
4657a003cd
commit
b632becaad
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ return [
|
|||
[
|
||||
'dest' => '\Modules\Kanban\Controller\SearchController:searchGeneral',
|
||||
'verb' => RouteVerb::ANY,
|
||||
'active' => true,
|
||||
'permission' => [
|
||||
'module' => SearchController::NAME,
|
||||
'type' => PermissionType::READ,
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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' => '',
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user