From afe6b34fd65069711f1c1c4c4ae96b8c160552ba Mon Sep 17 00:00:00 2001 From: Focuslinkstech <45756999+Focuslinkstech@users.noreply.github.com> Date: Mon, 26 Feb 2024 18:03:48 +0100 Subject: [PATCH 1/2] Update Package.php fix package recharge bug --- system/autoload/Package.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/autoload/Package.php b/system/autoload/Package.php index e8fe32a7..b1ed8423 100644 --- a/system/autoload/Package.php +++ b/system/autoload/Package.php @@ -201,9 +201,9 @@ class Package $d->routers = $router_name; $d->type = "Hotspot"; if ($admin) { - $b->admin_id = $admin['id']; + $d->admin_id = $admin['id']; }else{ - $b->admin_id = '0'; + $d->admin_id = '0'; } $d->save(); From c4e702ee2f5cca8b4bda5c2686ccb8df66afb23a Mon Sep 17 00:00:00 2001 From: Focuslinkstech <45756999+Focuslinkstech@users.noreply.github.com> Date: Fri, 8 Mar 2024 10:43:07 +0100 Subject: [PATCH 2/2] Update customers.php Fix Delete the Customers Attributes with the given field name, it delete all from the table which belong to other customers --- system/controllers/customers.php | 1 + 1 file changed, 1 insertion(+) diff --git a/system/controllers/customers.php b/system/controllers/customers.php index 0dbc1c5e..cfdf23b4 100644 --- a/system/controllers/customers.php +++ b/system/controllers/customers.php @@ -465,6 +465,7 @@ switch ($action) { // Delete the Customers Attributes with the given field name ORM::for_table('tbl_customers_fields') ->where('field_name', $fieldName) + ->where('customer_id', $id) ->delete_many(); } }