From ee5d7461fa2c629fd0d6d50e10e3b8144daff00e Mon Sep 17 00:00:00 2001 From: nathangray Date: Wed, 28 Nov 2018 14:57:08 -0700 Subject: [PATCH] Handle changes to query that were not there when sent --- api/src/Etemplate/Widget/Nextmatch.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/Etemplate/Widget/Nextmatch.php b/api/src/Etemplate/Widget/Nextmatch.php index 39f72ab92b..9c45100bac 100644 --- a/api/src/Etemplate/Widget/Nextmatch.php +++ b/api/src/Etemplate/Widget/Nextmatch.php @@ -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;