From 8ee0a0fad0b9a0ce128b6bd1da55bb0edd30ed58 Mon Sep 17 00:00:00 2001 From: Matheus Stolf Date: Fri, 10 Jun 2022 08:24:01 -0300 Subject: [PATCH 1/2] Inserted required property in the rename list field, to prevent the list from being unnamed --- src/components/board/Stack.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/board/Stack.vue b/src/components/board/Stack.vue index 830e70061..25d203f09 100644 --- a/src/components/board/Stack.vue +++ b/src/components/board/Stack.vue @@ -35,7 +35,10 @@ {{ stack.title }}
- + Date: Tue, 5 Jul 2022 22:20:59 +0200 Subject: [PATCH 2/2] Ensure that lists have a title MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/Service/StackService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Service/StackService.php b/lib/Service/StackService.php index 5d993b8e3..da80bbda6 100644 --- a/lib/Service/StackService.php +++ b/lib/Service/StackService.php @@ -214,7 +214,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'); } @@ -291,7 +291,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'); }