diff --git a/system/controllers/customers.php b/system/controllers/customers.php index 511040e3..f486b2c2 100644 --- a/system/controllers/customers.php +++ b/system/controllers/customers.php @@ -531,6 +531,7 @@ switch ($action) { $userDiff = false; $pppoeDiff = false; $passDiff = false; + $pppoeIpDiff = false; if ($oldusername != $username) { if (ORM::for_table('tbl_customers')->where('username', $username)->find_one()) { $msg .= Lang::T('Username already used by another customer') . '
'; @@ -551,6 +552,10 @@ switch ($action) { } $pppoeDiff = true; } + + if ($oldPppoeIp != $pppoe_ip) { + $pppoeIpDiff = true; + } if ($password != '' && $oldPassPassword != $password) { $passDiff = true; } @@ -625,7 +630,7 @@ switch ($action) { } } - if ($userDiff || $pppoeDiff || $passDiff) { + if ($userDiff || $pppoeDiff || $pppoeIpDiff || $passDiff) { $turs = ORM::for_table('tbl_user_recharges')->where('customer_id', $c['id'])->findMany(); foreach ($turs as $tur) { $p = ORM::for_table('tbl_plans')->find_one($tur['plan_id']); diff --git a/system/lan/english.json b/system/lan/english.json index 5797a2d0..d900c1a4 100644 --- a/system/lan/english.json +++ b/system/lan/english.json @@ -695,5 +695,6 @@ "Routers_Maps": "Routers Maps", "Routers_Geo_Location_Information": "Routers Geo Location Information", "Coverage": "Coverage", - "PPPoE_Username_already_used_by_another_customer": "PPPoE Username already used by another customer" + "PPPoE_Username_already_used_by_another_customer": "PPPoE Username already used by another customer", + "just_now": "just now" } \ No newline at end of file diff --git a/version.json b/version.json index bed772bd..602299ec 100644 --- a/version.json +++ b/version.json @@ -1,3 +1,3 @@ { - "version": "2024.8.6" + "version": "2024.8.6.1" } \ No newline at end of file