From 0580bb4f440396812d70391a1cd5de1fcaedbcc3 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 --- .../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() {