1
0
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:
Awilum
2019-12-10 23:59:14 +03:00
parent d668fed5e6
commit 3b52c30462
2 changed files with 5 additions and 3 deletions

View File

@@ -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);
}
/**

View File

@@ -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"