From aa787af017e3aa9c223bf62918388593235794fe Mon Sep 17 00:00:00 2001 From: Focuslinkstech <45756999+Focuslinkstech@users.noreply.github.com> Date: Thu, 5 Sep 2024 10:36:28 +0100 Subject: [PATCH] fix bandwidth name not displayed on active packages on customer dashboard --- system/autoload/User.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/system/autoload/User.php b/system/autoload/User.php index e8e6e65f..9cf47823 100644 --- a/system/autoload/User.php +++ b/system/autoload/User.php @@ -210,14 +210,15 @@ class User ->select('tbl_user_recharges.id', 'id') ->selects([ 'customer_id', 'username', 'plan_id', 'namebp', 'recharged_on', 'recharged_time', 'expiration', 'time', - 'status', 'method', 'plan_type', 'name_bw', + 'status', 'method', 'plan_type', ['tbl_user_recharges.routers', 'routers'], ['tbl_user_recharges.type', 'type'], 'admin_id', 'prepaid' ]) + ->left_outer_join('tbl_plans', ['tbl_plans.id', '=', 'tbl_user_recharges.plan_id']) + ->left_outer_join('tbl_bandwidth', ['tbl_bandwidth.id', '=', 'tbl_plans.id_bw']) + ->select('tbl_bandwidth.*') ->where('customer_id', $id) - ->left_outer_join('tbl_plans', array('tbl_plans.id', '=', 'tbl_user_recharges.plan_id')) - ->left_outer_join('tbl_bandwidth', array('tbl_bandwidth.id', '=', 'tbl_plans.id_bw')) ->find_many(); return $d; }