From 019ece549a684709db98e7b85eb23690c5906f41 Mon Sep 17 00:00:00 2001 From: dMetzger Date: Tue, 2 Oct 2012 09:50:44 +0000 Subject: [PATCH] // Fixed js condition in productcomments git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17675 b9a71923-0436-4b27-9f14-aed3839534dd --- modules/productcomments/js/productcomments.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/productcomments/js/productcomments.js b/modules/productcomments/js/productcomments.js index 3a19354c8..9bcc784ec 100644 --- a/modules/productcomments/js/productcomments.js +++ b/modules/productcomments/js/productcomments.js @@ -54,7 +54,8 @@ $(function() { e.preventDefault(); // Form element - url_options = productcomments_url_rewrite ? '&' : '?'; + + url_options = parseInt(productcomments_url_rewrite) ? '?' : '&'; $.ajax({ url: productcomments_controller_url+url_options+'action=add_comment&secure_key='+secure_key, data: $('#fancybox-content form').serialize(),