Ensure that lists have a title
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user