Skip to content

Commit

Permalink
Fix settings: false in blueprint not working closes #56
Browse files Browse the repository at this point in the history
  • Loading branch information
hdodov committed Jun 28, 2022
1 parent 8c1ea2b commit d7f6422
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "oblik/kirby-link-field",
"description": "Kirby 3 field for all types of links.",
"license": "MIT",
"version": "4.0.0",
"version": "4.0.1",
"type": "kirby-plugin",
"keywords": [
"kirby",
Expand Down
6 changes: 5 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@
return $value;
},
'settings' => function ($value = null) {
if ($value === false) {
return null;
}

$config = kirby()->option('oblik.link-field.settings');

if (is_array($value) && is_array($config)) {
Expand All @@ -114,7 +118,7 @@
}

if (empty($value)) {
$value = null;
return null;
}

return $value;
Expand Down

0 comments on commit d7f6422

Please sign in to comment.