aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/front/controller/admin/ShaareManageController.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2021-01-19 12:44:48 +0100
committerArthurHoaro <arthur@hoa.ro>2021-01-19 12:54:34 +0100
commit93175b6e9d5cfa4d4319bd58b9de01824d596288 (patch)
treea09a4d05273d5d615508cc469b8155f6fcebd4b7 /application/front/controller/admin/ShaareManageController.php
parentffa39719a17982e6a6cac9bc3f758aa12fa69973 (diff)
downloadShaarli-93175b6e9d5cfa4d4319bd58b9de01824d596288.tar.gz
Shaarli-93175b6e9d5cfa4d4319bd58b9de01824d596288.tar.zst
Shaarli-93175b6e9d5cfa4d4319bd58b9de01824d596288.zip
Fix: bulk add - delete existing link
Do not send redirect response in bookmark delete controller if the request comes from bulk creation page. Fixes #1683
Diffstat (limited to 'application/front/controller/admin/ShaareManageController.php')
-rw-r--r--application/front/controller/admin/ShaareManageController.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/application/front/controller/admin/ShaareManageController.php b/application/front/controller/admin/ShaareManageController.php
index 35837baa..9633cd51 100644
--- a/application/front/controller/admin/ShaareManageController.php
+++ b/application/front/controller/admin/ShaareManageController.php
@@ -66,6 +66,10 @@ class ShaareManageController extends ShaarliAdminController
66 return $response->write('<script>self.close();</script>'); 66 return $response->write('<script>self.close();</script>');
67 } 67 }
68 68
69 if ($request->getParam('source') === 'batch') {
70 return $response->withStatus(204);
71 }
72
69 // Don't redirect to permalink after deletion. 73 // Don't redirect to permalink after deletion.
70 return $this->redirectFromReferer($request, $response, ['shaare/']); 74 return $this->redirectFromReferer($request, $response, ['shaare/']);
71 } 75 }