From 96d76e94cd9f64b2cbaeddfeffe387fdfe773d72 Mon Sep 17 00:00:00 2001
From: Damien Burel <damien.burel@maarch.org>
Date: Wed, 31 May 2017 17:11:06 +0200
Subject: [PATCH] FEAT #5535 Fix action change status datatype ajax request

---
 apps/maarch_entreprise/js/functions.js | 22 ++++++++++------------
 1 file changed, 10 insertions(+), 12 deletions(-)

diff --git a/apps/maarch_entreprise/js/functions.js b/apps/maarch_entreprise/js/functions.js
index 8f5c870315e..b1c83d3c753 100755
--- a/apps/maarch_entreprise/js/functions.js
+++ b/apps/maarch_entreprise/js/functions.js
@@ -1591,24 +1591,22 @@ function action_send_form_confirm_result(path_manage_script, mode_req, id_action
         }
 }
 
-function action_change_status(path_manage_script, mode_req, res_id_values, tablename, id_coll, status,page)
+function action_change_status(path_manage_script, mode_req, res_id_values, tablename, id_coll, status, page)
 {
-    if(res_id_values != '' && (mode_req == 'mass' || mode_req == 'page')
-              && tablename != '' &&  id_coll != '')
-    {
+    if(res_id_values != '' && (mode_req == 'mass' || mode_req == 'page') && tablename != '' &&  id_coll != '') {
 
         $j.ajax({
             cache    : false,
             url      : path_manage_script,
             type     : 'POST',
-            dataType : 'json',
-            data: { values : res_id_values,
-                    mode : mode_req,
-                    req : 'change_status',
-                    table : tablename,
-                    coll_id : id_coll,
-                    new_status : status,
-                  },
+            data: {
+                values : res_id_values,
+                mode : mode_req,
+                req : 'change_status',
+                table : tablename,
+                coll_id : id_coll,
+                new_status : status
+            },
             success: function(answer) {
 
                 setTimeout(function(){
-- 
GitLab