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,
|
"type": 2,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "Kanban",
|
"name": "Kanban",
|
||||||
"uri": "{/base}/kanban/dashboard?{?}",
|
"uri": "{/base}/kanban/dashboard",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 45,
|
"order": 45,
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
"type": 3,
|
"type": 3,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "Boards",
|
"name": "Boards",
|
||||||
"uri": "{/base}/kanban/dashboard?{?}",
|
"uri": "{/base}/kanban/dashboard",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 1,
|
"order": 1,
|
||||||
|
|
@ -34,7 +34,7 @@
|
||||||
"type": 3,
|
"type": 3,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "Archive",
|
"name": "Archive",
|
||||||
"uri": "{/base}/kanban/archive?{?}",
|
"uri": "{/base}/kanban/archive",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 2,
|
"order": 2,
|
||||||
|
|
@ -49,7 +49,7 @@
|
||||||
"type": 3,
|
"type": 3,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "Create",
|
"name": "Create",
|
||||||
"uri": "{/base}/kanban/create?{?}",
|
"uri": "{/base}/kanban/create",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 3,
|
"order": 3,
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ return [
|
||||||
[
|
[
|
||||||
'dest' => '\Modules\Kanban\Controller\SearchController:searchGeneral',
|
'dest' => '\Modules\Kanban\Controller\SearchController:searchGeneral',
|
||||||
'verb' => RouteVerb::ANY,
|
'verb' => RouteVerb::ANY,
|
||||||
|
'active' => true,
|
||||||
'permission' => [
|
'permission' => [
|
||||||
'module' => SearchController::NAME,
|
'module' => SearchController::NAME,
|
||||||
'type' => PermissionType::READ,
|
'type' => PermissionType::READ,
|
||||||
|
|
|
||||||
|
|
@ -148,14 +148,15 @@ final class ApiController extends Controller
|
||||||
$card->tags = $this->app->moduleManager->get('Tag', 'Api')->createTagsFromRequest($request);
|
$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(
|
$uploaded = $this->app->moduleManager->get('Media', 'Api')->uploadFiles(
|
||||||
[],
|
names: [],
|
||||||
[],
|
fileNames: [],
|
||||||
$uploadedFiles,
|
files: $request->files,
|
||||||
$request->header->account,
|
account: $request->header->account,
|
||||||
__DIR__ . '/../../../Modules/Media/Files/Modules/Kanban',
|
basePath: __DIR__ . '/../../../Modules/Media/Files/Modules/Kanban',
|
||||||
'/Modules/Kanban',
|
virtualPath: '/Modules/Kanban',
|
||||||
);
|
);
|
||||||
|
|
||||||
foreach ($uploaded as $media) {
|
foreach ($uploaded as $media) {
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ final class SearchController extends Controller
|
||||||
$results[] = [
|
$results[] = [
|
||||||
'title' => $doc->name,
|
'title' => $doc->name,
|
||||||
'summary' => '',
|
'summary' => '',
|
||||||
'link' => '{/base}/kanban/card?id=' . $doc->id,
|
'link' => '{/base}/kanban/card/view?id=' . $doc->id,
|
||||||
'account' => '',
|
'account' => '',
|
||||||
'createdAt' => $doc->createdAt,
|
'createdAt' => $doc->createdAt,
|
||||||
'image' => '',
|
'image' => '',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user