diff options
author | ArthurHoaro <arthur@hoa.ro> | 2021-01-19 14:31:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-19 14:31:15 +0100 |
commit | baac4388b1696fb39f1b0bd621d215bba2da2ca8 (patch) | |
tree | fd671680c22f25d1b821b98cc307ae64d0ff2382 /application/front/controller | |
parent | 5b5d22a3df1ba948d39524b997ea4c82ee70e646 (diff) | |
parent | 93175b6e9d5cfa4d4319bd58b9de01824d596288 (diff) | |
download | Shaarli-baac4388b1696fb39f1b0bd621d215bba2da2ca8.tar.gz Shaarli-baac4388b1696fb39f1b0bd621d215bba2da2ca8.tar.zst Shaarli-baac4388b1696fb39f1b0bd621d215bba2da2ca8.zip |
Merge pull request #1693 from ArthurHoaro/fix/bulk-add-delete
Fix: bulk add - delete existing link
Diffstat (limited to 'application/front/controller')
-rw-r--r-- | application/front/controller/admin/ShaareManageController.php | 4 |
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 | } |