From b54c0125795799e33591c973687858f26576171d Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Mon, 15 Nov 2021 20:24:55 +0100 Subject: [PATCH] respect deactivated flag when createstdsubdomain's default falls back to 'true' if the customer has one (prior to deactivating); refs #998 Signed-off-by: Michael Kaufmann --- lib/Froxlor/Api/Commands/Customers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Froxlor/Api/Commands/Customers.php b/lib/Froxlor/Api/Commands/Customers.php index 90bc4dfd..e89031c3 100644 --- a/lib/Froxlor/Api/Commands/Customers.php +++ b/lib/Froxlor/Api/Commands/Customers.php @@ -1051,7 +1051,7 @@ class Customers extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resource } if ($this->isAdmin()) { - if ($createstdsubdomain != '1') { + if ($createstdsubdomain != '1' || $deactivated) { $createstdsubdomain = '0'; }