From c8a1d88bd84a6bc8f8badf4616d01af524f524ca Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 7 Jan 2019 18:13:08 +0100 Subject: [PATCH] fix TypeError: Argument 6 passed to Nextmatch::call_get_rows() must be an instance of Etemplate\Widget or null fix calendar edit gives an error when using [Save] button in list-view --- api/src/Etemplate/Widget/Nextmatch.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/src/Etemplate/Widget/Nextmatch.php b/api/src/Etemplate/Widget/Nextmatch.php index f1f6e80661..2333f71491 100644 --- a/api/src/Etemplate/Widget/Nextmatch.php +++ b/api/src/Etemplate/Widget/Nextmatch.php @@ -320,6 +320,10 @@ class Nextmatch extends Etemplate\Widget } //error_log($this . " Valid filters: " . array2string($filters)); } + else + { + $template = null; // get_rows method requires null, not false + } if (true) $value = $value_in = array_merge($value, $filters);