From 4daa5bb0c36caf15c10147d63cc12f3cefb38a46 Mon Sep 17 00:00:00 2001 From: tDidierjean Date: Wed, 16 May 2012 09:08:37 +0000 Subject: [PATCH] [-] BO : fix bug #PSCFV-2363 - wrong product tabs loaded when the product page is saved and has an error --- js/productTabsManager.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/productTabsManager.js b/js/productTabsManager.js index dbc21c080..f0206b9d4 100644 --- a/js/productTabsManager.js +++ b/js/productTabsManager.js @@ -96,7 +96,11 @@ function ProductTabsManager(){ // send $_POST array with the request to be able to retrieve posted data if there was an error while saving product var data; if (save_error) + { data = post_data; + // set key_tab so that the ajax call returns the display for the current tab + data.key_tab = tab_name; + } return $.ajax({ url : $('#link-'+tab_name).attr("href")+"&ajax=1",