mirror of
https://github.com/flextype/flextype.git
synced 2025-08-23 05:16:03 +02:00
- read entry instead of decode
This commit is contained in:
@@ -231,6 +231,7 @@ class EntriesController extends Controller
|
||||
$data_result = $data_from_post;
|
||||
}
|
||||
|
||||
|
||||
if ($this->entries->create($id, $data_result)) {
|
||||
$this->flash->addMessage('success', __('admin_message_entry_created'));
|
||||
} else {
|
||||
@@ -722,7 +723,7 @@ class EntriesController extends Controller
|
||||
'i' => count($parts),
|
||||
'last' => Arr::last($parts),
|
||||
'id' => $this->getEntryID($query),
|
||||
'data' => JsonParser::encode($entry),
|
||||
'data' => $this->entries->read($this->getEntryID($query), true)['file_data'],
|
||||
'type' => $type,
|
||||
'menu_item' => 'entries',
|
||||
'links' => [
|
||||
|
Reference in New Issue
Block a user