mirror of
https://github.com/flextype/flextype.git
synced 2025-08-25 14:10:44 +02:00
fix(admin-plugin): fix issue for creating entry process with same ids #333
This commit is contained in:
@@ -260,13 +260,14 @@ class EntriesController extends Controller
|
||||
} else {
|
||||
$this->flash->addMessage('error', __('admin_message_entry_was_not_created'));
|
||||
}
|
||||
|
||||
} else {
|
||||
$this->flash->addMessage('error', __('admin_message_fieldset_not_found'));
|
||||
}
|
||||
|
||||
return $response->withRedirect($this->router->pathFor('admin.entries.index') . '?id=' . $parent_entry_id);
|
||||
} else {
|
||||
$this->flash->addMessage('error', __('admin_message_entry_was_not_created'));
|
||||
}
|
||||
|
||||
return $response->withRedirect($this->router->pathFor('admin.entries.index') . '?id=' . $parent_entry_id);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -305,3 +305,4 @@ admin_help_text_for_fieldsets_hide: "Hide fieldsets from entries type select."
|
||||
admin_help_text_for_entry_label: "Entry title."
|
||||
admin_help_text_for_entry_name: "Entry unique name in lowercase chars only."
|
||||
admin_help_text_for_entry_type: "Entry type based on Fieldset."
|
||||
admin_message_fieldset_not_found: "Fieldset not found"
|
||||
|
Reference in New Issue
Block a user