diff --git a/site/plugins/admin/app/Controllers/EntriesController.php b/site/plugins/admin/app/Controllers/EntriesController.php index dcaf98d2..07c1174e 100644 --- a/site/plugins/admin/app/Controllers/EntriesController.php +++ b/site/plugins/admin/app/Controllers/EntriesController.php @@ -871,6 +871,14 @@ class EntriesController extends Controller Arr::delete($entry, 'modified_at'); Arr::delete($entry, 'created_at'); + if (isset($data['routable'])) { + $data['routable'] = (bool) $data['routable']; + } elseif(isset($entry['routable'])) { + $data['routable'] = (bool) $entry['routable']; + } else { + $data['routable'] = true; + } + // Merge entry data with $data $result_data = array_merge($entry, $data);