From 2f05ac0c45f4d6791254ec97f487d89df590e9aa Mon Sep 17 00:00:00 2001 From: rMalie Date: Mon, 14 May 2012 14:24:48 +0000 Subject: [PATCH] // Fix bug with checkbox and multishop git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15278 b9a71923-0436-4b27-9f14-aed3839534dd --- .../template/controllers/attributes/helpers/form/form.tpl | 2 +- admin-dev/themes/default/template/helpers/form/assoshop.tpl | 3 ++- 2 files changed, 3 insertions(+), 2 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 b321b7ba5..a1a847635 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 @@ -71,7 +71,7 @@ var id_attribute_group = $('#id_attribute_group').val(); $('.input_shop').each(function(k, item) { - var id_shop = $(item).val(); + var id_shop = $(item).attr('shop_id'); 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 d0d369eb8..9dd7bf66a 100644 --- a/admin-dev/themes/default/template/helpers/form/assoshop.tpl +++ b/admin-dev/themes/default/template/helpers/form/assoshop.tpl @@ -114,7 +114,8 @@ function check_all_shop() {