mirror of
https://github.com/flextype/flextype.git
synced 2025-08-23 13:23:18 +02:00
feat(admin-plugin): add new heading field #299
This commit is contained in:
@@ -248,6 +248,13 @@ class EntriesController extends Controller
|
||||
$data_result = $data_from_post;
|
||||
}
|
||||
|
||||
if ($this->entries->create($id, $data_result)) {
|
||||
$this->clearEntryCounter($parent_entry_id);
|
||||
$this->flash->addMessage('success', __('admin_message_entry_created'));
|
||||
} else {
|
||||
$this->flash->addMessage('error', __('admin_message_entry_was_not_created'));
|
||||
}
|
||||
|
||||
} else {
|
||||
$this->flash->addMessage('error', __('admin_message_fieldset_not_found'));
|
||||
}
|
||||
|
Reference in New Issue
Block a user