From 9d6c306a429f865312f96d94c1d5446d605a9c61 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Wed, 1 May 2024 19:10:06 +0530 Subject: [PATCH] Fix Online column on admin Booking Carts page --- controllers/admin/AdminCartsController.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/controllers/admin/AdminCartsController.php b/controllers/admin/AdminCartsController.php index 8b53e911c..439e477e3 100644 --- a/controllers/admin/AdminCartsController.php +++ b/controllers/admin/AdminCartsController.php @@ -96,7 +96,7 @@ class AdminCartsControllerCore extends AdminController 'type' => 'bool', 'havingFilter' => true, 'class' => 'fixed-width-xs', - 'icon' => array(0 => 'icon-', 1 => 'icon-user') + 'callback' => 'getOnlineStatus', ) ); $this->shopLinkType = 'shop'; @@ -143,6 +143,11 @@ class AdminCartsControllerCore extends AdminController return $tpl->fetch(); } + public function getOnlineStatus($status) + { + return $status ? $this->l('Yes') : $this->l('No'); + } + public function initPageHeaderToolbar() { if (empty($this->display)) {