From df5d156efc4da8ede2ec4250d237e30710db9a53 Mon Sep 17 00:00:00 2001 From: Banana Date: Sun, 3 Jan 2021 15:18:28 +0100 Subject: [PATCH] back link and after successfull save back to detailview --- webclient/view/default/manageentry/manageentry.html | 4 +++- webclient/view/default/manageentry/manageentry.php | 2 +- webclient/view/default/tool/tool.html | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/webclient/view/default/manageentry/manageentry.html b/webclient/view/default/manageentry/manageentry.html index 5cecbd4..8fef73c 100644 --- a/webclient/view/default/manageentry/manageentry.html +++ b/webclient/view/default/manageentry/manageentry.html @@ -5,7 +5,9 @@ if(!empty($TemplateData['editFields'])) { $_entry = $TemplateData['editData']['id']; ?>

Update an entry in:

-

View entry

+

+ View entry +

Add an entry to:

diff --git a/webclient/view/default/manageentry/manageentry.php b/webclient/view/default/manageentry/manageentry.php index 6147250..075a2d9 100644 --- a/webclient/view/default/manageentry/manageentry.php +++ b/webclient/view/default/manageentry/manageentry.php @@ -106,7 +106,7 @@ if(!empty($_collection)) { } elseif (!empty($_fieldsToSave) && isset($_fieldsToSave['title'])) { $do = $ManangeEntry->create($_fieldsToSave, $_owner, $_group, $_rights, $_id); if ($do !== 0) { - $TemplateData['refresh'] = 'index.php?p=manageentry&collection='.$_collection.'&id='.$_id; + $TemplateData['refresh'] = 'index.php?p=entry&collection='.$_collection.'&id='.$_id; } else { $TemplateData['message']['content'] = "Entry could not be updated."; $TemplateData['message']['status'] = "error"; diff --git a/webclient/view/default/tool/tool.html b/webclient/view/default/tool/tool.html index da49a9f..591cf0a 100644 --- a/webclient/view/default/tool/tool.html +++ b/webclient/view/default/tool/tool.html @@ -1,8 +1,8 @@

Using with collection:

-

+

-

+

-- 2.39.5