[COMPONENT][Tag] Add missing required route paramter nickname
This commit is contained in:
parent
2e69eac63e
commit
69565e3f49
|
@ -115,7 +115,7 @@ class Tag extends Controller
|
||||||
}
|
}
|
||||||
DB::flush();
|
DB::flush();
|
||||||
Cache::delete(E\Actor::cacheKeys($target->getId(), $target->getId())['tags']);
|
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) {
|
handle_existing: function ($form, array $form_definition) use ($request, $target, $details_id) {
|
||||||
$data = $form->getData();
|
$data = $form->getData();
|
||||||
|
@ -158,7 +158,7 @@ class Tag extends Controller
|
||||||
if ($changed) {
|
if ($changed) {
|
||||||
DB::flush();
|
DB::flush();
|
||||||
Cache::delete(E\Actor::cacheKeys($target->getId(), $target->getId())['tags']);
|
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'),
|
remove_label: _m('Remove self tag'),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user