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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user