Allow to set duedate during card creation
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -76,8 +76,8 @@ class CardApiController extends ApiController {
|
||||
*
|
||||
* Get a specific card.
|
||||
*/
|
||||
public function create($title, $type = 'plain', $order = 999, $description = '') {
|
||||
$card = $this->cardService->create($title, $this->request->getParam('stackId'), $type, $order, $this->userId, $description);
|
||||
public function create($title, $type = 'plain', $order = 999, $description = '', $duedate = null) {
|
||||
$card = $this->cardService->create($title, $this->request->getParam('stackId'), $type, $order, $this->userId, $description, $duedate);
|
||||
return new DataResponse($card, HTTP::STATUS_OK);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user