[-] BO : BugFix : #PSCFV-2260 : Admin in one shop can see categories from another shop

This commit is contained in:
vChabot
2012-05-11 13:56:15 +00:00
parent dc0ba0b452
commit e12614065c
3 changed files with 4 additions and 2 deletions
@@ -31,8 +31,9 @@
var selectedLabel = '{$categories.trads.selected}';
var home = '{$categories.trads.Root.name}';
var use_radio = {if $categories.use_radio}1{else}0{/if};
var use_context = {if isset($categories.use_context)}1{else}0{/if};
$(document).ready(function(){
buildTreeView();
buildTreeView(use_context);
});
</script>
@@ -359,6 +359,7 @@ class AdminCategoriesControllerCore extends AdminController
'use_search' => false,
'disabled_categories' => array(4),
'top_category' => Category::getTopCategory(),
'use_context' => true,
)
),
array(
+1 -1
View File
@@ -36,7 +36,7 @@ var id_category_root = 0;
function buildTreeView()
{
use_shop_context = 0;
if (buildTreeView.arguments[0])
if (buildTreeView.arguments[0] && buildTreeView.arguments[0] == 1)
use_shop_context = 1;
$("#categories-treeview").treeview({
url : 'ajax.php',