From 869de3d251680f1c33550ba686b9d356852c2bb0 Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 5 Jul 2018 14:42:39 -0700 Subject: [PATCH] Fixed broken pagination on status labels API --- app/Http/Transformers/StatuslabelsTransformer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Transformers/StatuslabelsTransformer.php b/app/Http/Transformers/StatuslabelsTransformer.php index f1a5460531..f76557a0bf 100644 --- a/app/Http/Transformers/StatuslabelsTransformer.php +++ b/app/Http/Transformers/StatuslabelsTransformer.php @@ -9,13 +9,13 @@ use App\Helpers\Helper; class StatuslabelsTransformer { - public function transformStatuslabels (Collection $statuslabels) + public function transformStatuslabels (Collection $statuslabels, $total) { $array = array(); foreach ($statuslabels as $statuslabel) { $array[] = self::transformStatuslabel($statuslabel); } - return (new DatatablesTransformer)->transformDatatables($array); + return (new DatatablesTransformer)->transformDatatables($array, $total); } public function transformStatuslabel (Statuslabel $statuslabel)