CardApiController: Fix order of optional parameters

Signed-off-by: Simon Spannagel <simonspa@kth.se>
This commit is contained in:
Simon Spannagel
2022-01-07 11:31:32 +01:00
parent f5c35729ca
commit 3dfc33378d

View File

@@ -94,7 +94,7 @@ class CardApiController extends ApiController {
*
* Update a card
*/
public function update($title, $type, $order = 0, $description = '', $owner, $duedate = null, $archived = null) {
public function update($title, $type, $owner, $description = '', $order = 0, $duedate = null, $archived = null) {
$card = $this->cardService->update($this->request->getParam('cardId'), $title, $this->request->getParam('stackId'), $type, $owner, $description, $order, $duedate, 0, $archived);
return new DataResponse($card, HTTP::STATUS_OK);
}