From e54a395238988b126b46d1aaf60e7cf03f65d583 Mon Sep 17 00:00:00 2001 From: Mark Unwin Date: Tue, 7 Nov 2017 13:32:58 +1000 Subject: [PATCH] Fix bug in componenet retrieval function call. --- code_igniter/application/controllers/devices.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/code_igniter/application/controllers/devices.php b/code_igniter/application/controllers/devices.php index 876f61e9e..5fb91c7dc 100644 --- a/code_igniter/application/controllers/devices.php +++ b/code_igniter/application/controllers/devices.php @@ -127,7 +127,15 @@ private function read() foreach ($temp as $table) { if ($table != 'fields') { $result = false; - $result = $this->m_devices->read_sub_resource($this->response->meta->id, $table, $this->response->meta->sub_resource_id, $this->response->meta->properties, '', $this->response->meta->limit); + $result = $this->m_devices->read_sub_resource( + $this->response->meta->id, #id + $table, #sub_resource + $this->response->meta->sub_resource_id, # sub id + $this->response->meta->properties, # properties + '', # sort + $this->response->meta->current, # current + $this->response->meta->limit # limit + ); if ($result !== false) { $this->response->included = array_merge($this->response->included, $result); }