1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-23 13:23:18 +02:00

feat(core): set routable true on entries creation #320

This commit is contained in:
Awilum
2019-12-10 18:13:54 +03:00
parent 3915e8fa35
commit ebcfd400de

View File

@@ -480,7 +480,7 @@ class Entries
$data['published_by'] = (Session::exists('uuid') ? Session::get('uuid') : '');
$data['created_by'] = (Session::exists('uuid') ? Session::get('uuid') : '');
if (isset($data['routable']) && is_array($data['routable'])) {
if (isset($data['routable']) && is_bool($data['routable'])) {
$data['routable'] = $data['routable'];
} else {
$data['routable'] = true;