From 17bf899a17c99f9563a4cd2a1d6cfbc25a2c6e93 Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 25 Oct 2021 20:14:01 -0700 Subject: [PATCH] Set default_label to 0 instead of null in API Signed-off-by: snipe --- app/Http/Controllers/Api/StatuslabelsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Api/StatuslabelsController.php b/app/Http/Controllers/Api/StatuslabelsController.php index 534c49a568..debb41b5f9 100644 --- a/app/Http/Controllers/Api/StatuslabelsController.php +++ b/app/Http/Controllers/Api/StatuslabelsController.php @@ -73,7 +73,7 @@ class StatuslabelsController extends Controller $statuslabel->archived = $statusType['archived']; $statuslabel->color = $request->input('color'); $statuslabel->show_in_nav = $request->input('show_in_nav', 0); - $statuslabel->default_label = $request->input('default_label'); + $statuslabel->default_label = $request->input('default_label', 0); if ($statuslabel->save()) {