Skip to content

Commit

Permalink
Fix/bug empty link (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ange7 authored Sep 22, 2021
1 parent 3b41749 commit 14ec677
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Observers/ItemObserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ protected function cleanModel(MenuItem $item)
}
}

if (request()->get('link_type') === MenuItem::TYPE_EMPTY) {
if ((int) request()->get('link_type') === MenuItem::TYPE_EMPTY) {
$item->{menuItem::linkTypesAttributes()[MenuItem::TYPE_EMPTY]} = 1;
} else {
$item->{menuItem::linkTypesAttributes()[MenuItem::TYPE_EMPTY]} = 0;
Expand Down

0 comments on commit 14ec677

Please sign in to comment.