From fe6876a8d987ddc56b071b7311d190daedc07178 Mon Sep 17 00:00:00 2001 From: rMalie Date: Mon, 14 May 2012 10:22:51 +0000 Subject: [PATCH] // Fix attribute values creation in multishop #PSCFV-2313 --- .../template/controllers/attributes/helpers/form/form.tpl | 6 +++--- admin-dev/themes/default/template/helpers/form/assoshop.tpl | 2 +- controllers/admin/AdminAttributesGroupsController.php | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/admin-dev/themes/default/template/controllers/attributes/helpers/form/form.tpl b/admin-dev/themes/default/template/controllers/attributes/helpers/form/form.tpl index 571ecfe9e..b321b7ba5 100644 --- a/admin-dev/themes/default/template/controllers/attributes/helpers/form/form.tpl +++ b/admin-dev/themes/default/template/controllers/attributes/helpers/form/form.tpl @@ -69,10 +69,10 @@ var changeAssociationGroup = function() { var id_attribute_group = $('#id_attribute_group').val(); - $('.input_shop_group').each(function(k, item) + $('.input_shop').each(function(k, item) { - var id_shop_group = $(item).val(); - if (typeof shop_associations[id_attribute_group] != 'undefined' && $.inArray(id_shop_group, shop_associations[id_attribute_group]) > -1) + var id_shop = $(item).val(); + if (typeof shop_associations[id_attribute_group] != 'undefined' && $.inArray(id_shop, shop_associations[id_attribute_group]) > -1) $(item).attr('disabled', false); else { diff --git a/admin-dev/themes/default/template/helpers/form/assoshop.tpl b/admin-dev/themes/default/template/helpers/form/assoshop.tpl index 8331ea99f..d0d369eb8 100644 --- a/admin-dev/themes/default/template/helpers/form/assoshop.tpl +++ b/admin-dev/themes/default/template/helpers/form/assoshop.tpl @@ -114,7 +114,7 @@ function check_all_shop() {