diff --git a/lib/Service/StackService.php b/lib/Service/StackService.php index 971992a68..d15544a1c 100644 --- a/lib/Service/StackService.php +++ b/lib/Service/StackService.php @@ -218,7 +218,7 @@ class StackService { * @throws BadRequestException */ public function create($title, $boardId, $order) { - if ($title === false || $title === null) { + if ($title === false || $title === null || mb_strlen($title) === 0) { throw new BadRequestException('title must be provided'); } @@ -295,7 +295,7 @@ class StackService { throw new BadRequestException('stack id must be a number'); } - if ($title === false || $title === null) { + if ($title === false || $title === null || mb_strlen($title) === 0) { throw new BadRequestException('title must be provided'); } diff --git a/src/components/board/Stack.vue b/src/components/board/Stack.vue index 52f24d703..4fd3e9acd 100644 --- a/src/components/board/Stack.vue +++ b/src/components/board/Stack.vue @@ -42,7 +42,10 @@ {{ stack.title }}