Skip to content

Commit 6fa3924

Browse files
committed
deleteAction in GroupController fired off wrong event
Changed the event fired off by the GroupController upon deletion of a group in deleteAction() from GROUP_CREATE_COMPLETED to GROUP_DELETE_COMPLETED.
1 parent d42a471 commit 6fa3924

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Controller/GroupController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public function deleteAction(Request $request, $groupName)
157157

158158
/** @var $dispatcher \Symfony\Component\EventDispatcher\EventDispatcherInterface */
159159
$dispatcher = $this->container->get('event_dispatcher');
160-
$dispatcher->dispatch(FOSUserEvents::GROUP_CREATE_COMPLETED, new FilterGroupResponseEvent($group, $request, $response));
160+
$dispatcher->dispatch(FOSUserEvents::GROUP_DELETE_COMPLETED, new FilterGroupResponseEvent($group, $request, $response));
161161

162162
return $response;
163163
}

0 commit comments

Comments
 (0)