Set default_label to 0 instead of null in API

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2021-10-25 20:14:01 -07:00
parent a5230319b8
commit 17bf899a17

View file

@ -73,7 +73,7 @@ class StatuslabelsController extends Controller
$statuslabel->archived = $statusType['archived']; $statuslabel->archived = $statusType['archived'];
$statuslabel->color = $request->input('color'); $statuslabel->color = $request->input('color');
$statuslabel->show_in_nav = $request->input('show_in_nav', 0); $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()) { if ($statuslabel->save()) {