From 7eb31e07ea1c28ec7c625392ce6d51feaf70799d Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Tue, 3 Jan 2012 12:33:46 +0000 Subject: [PATCH] // Fixing problems with blocklayered git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12054 b9a71923-0436-4b27-9f14-aed3839534dd --- modules/blocklayered/blocklayered.js | 5 ++++- modules/blocklayered/blocklayered.tpl | 2 +- modules/blocklayered/config.xml | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/blocklayered/blocklayered.js b/modules/blocklayered/blocklayered.js index cf50ea825..03469cfd2 100644 --- a/modules/blocklayered/blocklayered.js +++ b/modules/blocklayered/blocklayered.js @@ -293,7 +293,10 @@ function reloadContent(params_plus) }); $('#layered_form .select option:checked').each( function () { - data += '&'+$(this).attr('id') + '=' + $(this).val(); + if($(this).attr('id')) + { + data += '&'+$(this).attr('id') + '=' + $(this).val(); + } }); if ($('#selectPrductSort').length) diff --git a/modules/blocklayered/blocklayered.tpl b/modules/blocklayered/blocklayered.tpl index de09b3a9e..d03dd82df 100644 --- a/modules/blocklayered/blocklayered.tpl +++ b/modules/blocklayered/blocklayered.tpl @@ -125,7 +125,7 @@ param_product_url = '';