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;