From 912d4db2d296a078f0ee0110266cf6158f9928d5 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Sun, 23 Jun 2024 12:05:18 +0700 Subject: [PATCH] fix delete customer to remove on device --- system/controllers/customers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/controllers/customers.php b/system/controllers/customers.php index 8ecebbf3..c00f478f 100644 --- a/system/controllers/customers.php +++ b/system/controllers/customers.php @@ -331,7 +331,7 @@ switch ($action) { // Delete the associated Customers Attributes records from tbl_customer_custom_fields table ORM::for_table('tbl_customers_fields')->where('customer_id', $id)->delete_many(); //Delete active package - $turs = ORM::for_table('tbl_user_recharges')->where('username', $c['username'])->find_one(); + $turs = ORM::for_table('tbl_user_recharges')->where('username', $c['username'])->find_many(); foreach($turs as $tur){ $p = ORM::for_table('tbl_plans')->find_one($tur['plan_id']); if ($p) {