From 9690d067f87bad473fcdd262c4a2a955e80a1d39 Mon Sep 17 00:00:00 2001 From: Jan Kristinus Date: Fri, 28 Jun 2024 10:19:23 +0200 Subject: [PATCH] getItemFunc erweitert um $instance data --- plugins/rest/lib/rest/route.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/rest/lib/rest/route.php b/plugins/rest/lib/rest/route.php index 742f93d0..62564558 100644 --- a/plugins/rest/lib/rest/route.php +++ b/plugins/rest/lib/rest/route.php @@ -227,7 +227,7 @@ public function handleRequest(array $paths, array $get) array_merge($paths, [$instance->getId()]), ); if (is_callable($this->getItemFunc)) { - $instance_data = call_user_func($this->getItemFunc, $this, $instance_data); + $instance_data = call_user_func($this->getItemFunc, $this, $instance_data, $instance); } $data[] = $instance_data;