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

feat(admin-plugin): update EntriesController edit method #212 #186

- read entry instead of decode
This commit is contained in:
Awilum
2019-08-20 12:15:18 +03:00
parent c87ee5888d
commit 11d5b0e893

View File

@@ -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' => [