[-] MO : BugFix : #PSCFV-2822 : ProductComment module : submitNewMessage url problem
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16115 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
f87876d494
commit
6eeeb37b9e
3 files changed
+5
-2
No files matched your search
@@ -54,8 +54,9 @@ $(function() {
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
// Form element
|
// Form element
|
||||||
|
url_options = productcomments_url_rewrite ? '?' : '&';
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: productcomments_controller_url+'&action=add_comment&secure_key='+secure_key,
|
url: productcomments_controller_url+url_options+'action=add_comment&secure_key='+secure_key,
|
||||||
data: $('#fancybox-content form').serialize(),
|
data: $('#fancybox-content form').serialize(),
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
|
|||||||
@@ -755,7 +755,8 @@ class ProductComments extends Module
|
|||||||
'productcomment_cover' => (int)Tools::getValue('id_product').'-'.(int)$image['id_image'],
|
'productcomment_cover' => (int)Tools::getValue('id_product').'-'.(int)$image['id_image'],
|
||||||
'mediumSize' => Image::getSize('medium'),
|
'mediumSize' => Image::getSize('medium'),
|
||||||
'nbComments' => (int)ProductComment::getCommentNumber((int)Tools::getValue('id_product')),
|
'nbComments' => (int)ProductComment::getCommentNumber((int)Tools::getValue('id_product')),
|
||||||
'productcomments_controller_url' => $this->context->link->getModuleLink('productcomments')
|
'productcomments_controller_url' => $this->context->link->getModuleLink('productcomments'),
|
||||||
|
'productcomments_url_rewriting_activated' => Configuration::get('PS_REWRITING_SETTINGS', 0)
|
||||||
));
|
));
|
||||||
|
|
||||||
$this->context->controller->pagination((int)ProductComment::getCommentNumber((int)Tools::getValue('id_product')));
|
$this->context->controller->pagination((int)ProductComment::getCommentNumber((int)Tools::getValue('id_product')));
|
||||||
|
|||||||
@@ -27,6 +27,7 @@
|
|||||||
var productcomments_controller_url = '{$productcomments_controller_url}';
|
var productcomments_controller_url = '{$productcomments_controller_url}';
|
||||||
var confirm_report_message = "{l s='Are you sure you want report this comment?' mod='productcomments'}";
|
var confirm_report_message = "{l s='Are you sure you want report this comment?' mod='productcomments'}";
|
||||||
var secure_key = "{$secure_key}";
|
var secure_key = "{$secure_key}";
|
||||||
|
var productcomments_url_rewrite = '{$productcomments_url_rewriting_activated}';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div id="idTab5">
|
<div id="idTab5">
|
||||||
|
|||||||
Reference in new issue
Block a user