Skip to content

Commit

Permalink
// revert historical cast to string for 1.5 template
Browse files Browse the repository at this point in the history
  • Loading branch information
gRoussac committed Feb 7, 2014
1 parent 8076bb2 commit 86f25c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion controllers/front/ProductController.php
Expand Up @@ -503,7 +503,7 @@ protected function assignAttributesGroups()
{
$attribute_list = '';
foreach ($comb['attributes'] as $id_attribute)
$attribute_list .= (int)$id_attribute.',';
$attribute_list .= '\''.(int)$id_attribute.'\',';
$attribute_list = rtrim($attribute_list, ',');
$combinations[$id_product_attribute]['list'] = $attribute_list;
}
Expand Down
3 changes: 1 addition & 2 deletions js/tools.js
Expand Up @@ -163,7 +163,6 @@ function openCloseAllDiv(name, option)

function toggleDiv(name, option)
{
console.log(option);
$('*[name='+name+']').each(function(){
if (option == 'open')
{
Expand Down Expand Up @@ -476,7 +475,7 @@ function print_r(arr, level)
function in_array(value, array)
{
for (var i in array)
if (array[i] === value)
if ((array[i] + '') === (value + ''))
return true;
return false;
}
Expand Down

0 comments on commit 86f25c5

Please sign in to comment.