Handle changes to query that were not there when sent

This commit is contained in:
nathangray 2018-11-28 14:57:08 -07:00
parent 4a8b94bed8
commit ee5d7461fa

View File

@ -483,14 +483,14 @@ class Nextmatch extends Etemplate\Widget
$request_value =& self::get_array(self::$request->content, $form_name,true);
$changes = $no_rows = false;
foreach($value_in as $key => $original_value)
foreach(array_keys($value_in) + array_keys($value) as $key)
{
// These keys are ignored
if(in_array($key, array('col_filter','start','num_rows','total','order','sort')))
{
continue;
}
if($original_value == $value[$key]) continue;
if($value_in[$key] == $value[$key]) continue;
// These keys we don't send row data back, as they cause a partial reload
if(in_array($key, array('template'))) $no_rows = true;