Remove ajax cache

This commit is contained in:
Michael RICOIS 2018-03-08 17:14:38 +01:00
parent eed8873dc5
commit 87387701c3

View File

@ -383,7 +383,7 @@ class AdminDiscounts extends AdminTab
var filterValue = \''.(($value = (int)($this->getFieldValue($obj, 'id_customer'))) ? '0_'.$value : (($value = (int)($this->getFieldValue($obj, 'id_group'))) ? '1_'.$value : '')).'\';
if ($(\'#filter\').val())
filterValue = $(\'#filter\').val();
$.ajaxSetup({ cache: false });
$.getJSON("'.dirname($currentIndex).'/ajax.php",{ajaxDiscountCustomers:1,filter:filterValue},
function(obj) {
var groups_length = obj.groups.length;