1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-16 10:04:21 +02:00

fix(admin-panel): fix issues with routable field on entry edit

This commit is contained in:
Awilum
2020-02-27 17:33:01 +03:00
parent 3a0334c079
commit 74177c7e2a

View File

@@ -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);