mirror of
https://github.com/flextype/flextype.git
synced 2025-08-19 11:21:30 +02:00
- add additional check for $fieldset['parser']
This commit is contained in:
@@ -231,8 +231,13 @@ class EntriesController extends Controller
|
||||
$data_result = $data_from_post;
|
||||
}
|
||||
|
||||
|
||||
if ($this->entries->create($id, $data_result)) {
|
||||
if (isset($fieldset['parser'])) {
|
||||
$parser = $fieldset['parser'];
|
||||
} else {
|
||||
$parser = 'frontmatter';
|
||||
}
|
||||
|
||||
if ($this->entries->create($id, $data_result, $parser)) {
|
||||
$this->flash->addMessage('success', __('admin_message_entry_created'));
|
||||
} else {
|
||||
$this->flash->addMessage('error', __('admin_message_entry_was_not_created'));
|
||||
|
Reference in New Issue
Block a user