From d8835a09c0ec4d6b7c51a8fe00ce2b56324814e9 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Fri, 7 Oct 2016 10:13:19 +0300 Subject: [PATCH] Fix for sorting payment list by source --- app/Ninja/Datatables/PaymentDatatable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Ninja/Datatables/PaymentDatatable.php b/app/Ninja/Datatables/PaymentDatatable.php index 20f2cd025892..ce79ad96fdda 100644 --- a/app/Ninja/Datatables/PaymentDatatable.php +++ b/app/Ninja/Datatables/PaymentDatatable.php @@ -52,7 +52,7 @@ class PaymentDatatable extends EntityDatatable } ], [ - 'source', + 'payment_type_id', function ($model) { $code = str_replace(' ', '', strtolower($model->payment_type)); $card_type = trans('texts.card_' . $code);