From 69565e3f49150184544e122b307f1c422119becd Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Thu, 23 Dec 2021 17:11:37 +0000 Subject: [PATCH] [COMPONENT][Tag] Add missing required route paramter nickname --- components/Tag/Controller/Tag.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/Tag/Controller/Tag.php b/components/Tag/Controller/Tag.php index 4784e4fdf8..8ea835c4a1 100644 --- a/components/Tag/Controller/Tag.php +++ b/components/Tag/Controller/Tag.php @@ -115,7 +115,7 @@ class Tag extends Controller } DB::flush(); Cache::delete(E\Actor::cacheKeys($target->getId(), $target->getId())['tags']); - throw new RedirectException($request->get('_route'), ['open' => $details_id]); + throw new RedirectException($request->get('_route'), ['nickname' => $target->getNickname(), 'open' => $details_id]); }, handle_existing: function ($form, array $form_definition) use ($request, $target, $details_id) { $data = $form->getData(); @@ -158,7 +158,7 @@ class Tag extends Controller if ($changed) { DB::flush(); Cache::delete(E\Actor::cacheKeys($target->getId(), $target->getId())['tags']); - throw new RedirectException($request->get('_route'), ['open' => $details_id]); + throw new RedirectException($request->get('_route'), ['nickname' => $target->getNickname(), 'open' => $details_id]); } }, remove_label: _m('Remove self tag'),