From 5639bd12741537c686a28aba5003ea06d38ffcc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 15 Aug 2018 21:09:39 +0200 Subject: [PATCH] Fix controller deleted at parameter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/Controller/CardApiController.php | 2 +- lib/Controller/StackApiController.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Controller/CardApiController.php b/lib/Controller/CardApiController.php index a26817c9a..5aa45d0f6 100644 --- a/lib/Controller/CardApiController.php +++ b/lib/Controller/CardApiController.php @@ -87,7 +87,7 @@ public function create($title, $type = 'plain', $order = 999) { * Update a card */ public function update($title, $type, $order = 0, $description = '', $owner, $duedate = null) { - $card = $this->cardService->update($this->request->getParam('cardId'), $title, $this->request->getParam('stackId'), $type, $order, $description, $owner, $duedate); + $card = $this->cardService->update($this->request->getParam('cardId'), $title, $this->request->getParam('stackId'), $type, $order, $description, $owner, $duedate, 0); return new DataResponse($card, HTTP::STATUS_OK); } diff --git a/lib/Controller/StackApiController.php b/lib/Controller/StackApiController.php index 936311bac..6e4fb3867 100644 --- a/lib/Controller/StackApiController.php +++ b/lib/Controller/StackApiController.php @@ -102,7 +102,7 @@ public function create($title, $order) { * Update a stack by the specified stackId and boardId with the values that were put. */ public function update($title, $order) { - $stack = $this->stackService->update($this->request->getParam('stackId'), $title, $this->request->getParam('boardId'), $order); + $stack = $this->stackService->update($this->request->getParam('stackId'), $title, $this->request->getParam('boardId'), $order, 0); return new DataResponse($stack, HTTP::STATUS_OK); }