mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 05:53:13 +00:00
Fix #1365 : Collection rename redirect to a wrong URL
This commit is contained in:
@@ -982,7 +982,7 @@ class Collection implements ControllerProviderInterface
|
||||
}
|
||||
|
||||
return $app->redirectPath('admin_display_collection', array(
|
||||
'bas_id' => $collection->get_sbas_id(),
|
||||
'bas_id' => $collection->get_base_id(),
|
||||
'success' => (int) $success,
|
||||
'reload-tree' => 1,
|
||||
));
|
||||
|
@@ -351,6 +351,7 @@ class AdminCollectionTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
||||
));
|
||||
|
||||
$this->assertTrue(self::$DI['client']->getResponse()->isRedirect());
|
||||
$this->assertEquals('/admin/collection/' . $collection->get_base_id() . '/?success=1&reload-tree=1', self::$DI['client']->getResponse()->headers->get('location'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user