Skip to content

Commit

Permalink
The ignoreAttributes itself should be ignored, too.
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus committed Jul 24, 2013
1 parent b45f18b commit dc1fff0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Expand Up @@ -49,7 +49,7 @@ public function redirectAction(Request $request, $route, $permanent = false, $ig
$attributes = array();
if (false === $ignoreAttributes || is_array($ignoreAttributes)) {
$attributes = $request->attributes->get('_route_params');
unset($attributes['route'], $attributes['permanent']);
unset($attributes['route'], $attributes['permanent'], $attributes['ignoreAttributes']);
if ($ignoreAttributes) {
$attributes = array_diff_key($attributes, array_flip($ignoreAttributes));
}
Expand Down
Expand Up @@ -53,6 +53,7 @@ public function testRoute($permanent, $ignoreAttributes, $expectedCode, $expecte
'route' => $route,
'permanent' => $permanent,
'additional-parameter' => 'value',
'ignoreAttributes' => $ignoreAttributes
),
);

Expand Down

0 comments on commit dc1fff0

Please sign in to comment.