From 86ec8ee17d0ca1052bf50ab58b01ae4917ef7380 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 17414aefbd..44812fac5a 100644 --- a/api/src/Etemplate/Widget/Nextmatch.php +++ b/api/src/Etemplate/Widget/Nextmatch.php @@ -319,6 +319,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);