diff --git a/app/Domain/Goalcanvas/Controllers/Dashboard.php b/app/Domain/Goalcanvas/Controllers/Dashboard.php index 5aed828c8..f10874ded 100644 --- a/app/Domain/Goalcanvas/Controllers/Dashboard.php +++ b/app/Domain/Goalcanvas/Controllers/Dashboard.php @@ -305,12 +305,6 @@ public function run() } } - // request - // $filter['status'] = request('filter_status', session('filter_status', 'all')); - // session(['filter_status' => $filter['status']]); - // $filter['relates'] = request('filter_relates', session('filter_relates', 'all')); - // session(['filter_relates' => $filter['relates']]); - $filter['status'] = $_GET['filter_status'] ?? (session("filter_status") ?? 'all'); session(["filter_status" => $filter['status']]); $filter['relates'] = $_GET['filter_relates'] ?? (session("filter_relates") ?? 'all'); diff --git a/app/Domain/Goalcanvas/Controllers/DelCanvas.php b/app/Domain/Goalcanvas/Controllers/DelCanvas.php index 151d33af9..02e5f0aba 100644 --- a/app/Domain/Goalcanvas/Controllers/DelCanvas.php +++ b/app/Domain/Goalcanvas/Controllers/DelCanvas.php @@ -4,13 +4,27 @@ * Controller / Delete Canvas */ + namespace Leantime\Domain\Goalcanvas\Controllers { + // use AWS\CRT\HTTP\Response; + use Symfony\Component\HttpFoundation\Response; + + /** * */ class DelCanvas extends \Leantime\Domain\Canvas\Controllers\DelCanvas { protected const CANVAS_NAME = 'goal'; + + public function get($params):Response + { + $id = filter_var($params['id'] ?? '', FILTER_SANITIZE_NUMBER_INT); + $this->tpl->assign('id', $id); + + return $this->tpl->displayPartial('goalcanvas.delCanvas'); + + } } } diff --git a/app/Domain/Goalcanvas/Controllers/DelCanvasItem.php b/app/Domain/Goalcanvas/Controllers/DelCanvasItem.php index 7406bf7fa..c70253209 100644 --- a/app/Domain/Goalcanvas/Controllers/DelCanvasItem.php +++ b/app/Domain/Goalcanvas/Controllers/DelCanvasItem.php @@ -5,6 +5,7 @@ */ namespace Leantime\Domain\Goalcanvas\Controllers { + use Symfony\Component\HttpFoundation\Response; /** * @@ -12,6 +13,14 @@ class DelCanvasItem extends \Leantime\Domain\Canvas\Controllers\DelCanvasItem { protected const CANVAS_NAME = 'goal'; + public function get($params):Response + { + $id = filter_var($params['id'] ?? '', FILTER_SANITIZE_NUMBER_INT); + $this->tpl->assign('id', $id); + + return $this->tpl->displayPartial('goalcanvas.delCanvasItem'); + + } } diff --git a/app/Domain/Goalcanvas/Controllers/EditCanvasItem.php b/app/Domain/Goalcanvas/Controllers/EditCanvasItem.php index bff0b2bc8..3a284339b 100644 --- a/app/Domain/Goalcanvas/Controllers/EditCanvasItem.php +++ b/app/Domain/Goalcanvas/Controllers/EditCanvasItem.php @@ -116,6 +116,8 @@ public function get($params): Response $comments = []; } + $this->tpl->assign('id', $canvasItem['id']??""); + $this->tpl->assign('canvasId', $canvasItem['canvasId']); $this->tpl->assign('comments', $comments); @@ -123,6 +125,7 @@ public function get($params): Response $allProjectMilestones = $this->ticketService->getAllMilestones(["sprint" => '', "type" => "milestone", "currentProject" => session("currentProject")]); $this->tpl->assign('milestones', $allProjectMilestones); + $this->tpl->assign('currentCanvas', $canvasItem['canvasId']); $this->tpl->assign('canvasItem', $canvasItem); $this->tpl->assign('canvasIcon', $this->canvasRepo->getIcon()); diff --git a/app/Domain/Goalcanvas/Templates/bigRockDialog.blade.php b/app/Domain/Goalcanvas/Templates/bigRockDialog.blade.php index 3e73bb1e9..1388cf0b0 100644 --- a/app/Domain/Goalcanvas/Templates/bigRockDialog.blade.php +++ b/app/Domain/Goalcanvas/Templates/bigRockDialog.blade.php @@ -1,19 +1,19 @@