Merge pull request #12176 from vinuvarshith/dev-core-133-reply-to-check
[civicrm-core.git] / js / crm.ajax.js
index 9cb5eb601e0985c32784f8fa7724f2657be552b4..e1742da8fd9873c3bd318435de350b867686df80 100644 (file)
@@ -68,7 +68,7 @@
       url: CRM.url('civicrm/ajax/rest'),
       dataType: 'json',
       data: params,
-      type: params.action.indexOf('get') < 0 ? 'POST' : 'GET'
+      type: params.action.indexOf('get') === 0 ? 'GET' : 'POST'
     });
     if (status) {
       // Default status messages