From ce7a9eccfc4ca093281a2a897e435b7e46de9874 Mon Sep 17 00:00:00 2001 From: gmorel Date: Mon, 23 Sep 2013 17:28:11 +0200 Subject: [PATCH] Working : upload image : fix return URL to images tab --- core/lib/Thelia/Tools/FileManager.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/lib/Thelia/Tools/FileManager.php b/core/lib/Thelia/Tools/FileManager.php index e72aa2dfa..e18ef58d0 100644 --- a/core/lib/Thelia/Tools/FileManager.php +++ b/core/lib/Thelia/Tools/FileManager.php @@ -404,16 +404,16 @@ class FileManager { switch ($parentType) { case ImagesCreateOrUpdateEvent::TYPE_PRODUCT: - $uri = '/admin/products/update?product_id=' . $parentId; + $uri = '/admin/products/update?product_id=' . $parentId . '¤t_tab=images'; break; case ImagesCreateOrUpdateEvent::TYPE_CATEGORY: - $uri = '/admin/categories/update?category_id=' . $parentId; + $uri = '/admin/categories/update?category_id=' . $parentId . '¤t_tab=images'; break; case ImagesCreateOrUpdateEvent::TYPE_CONTENT: - $uri = '/admin/content/update/' . $parentId; + $uri = '/admin/content/update/' . $parentId . '¤t_tab=images'; break; case ImagesCreateOrUpdateEvent::TYPE_FOLDER: - $uri = '/admin/folders/update/' . $parentId; + $uri = '/admin/folders/update/' . $parentId . '¤t_tab=images'; break; default: $uri = false;