diff --git a/admin/DashboardController.php b/admin/DashboardController.php index 6dc8951..3676853 100644 --- a/admin/DashboardController.php +++ b/admin/DashboardController.php @@ -1006,7 +1006,7 @@ HTML; $config_json = $cv('config_json'); $bot_type = $company['bot_type'] ?? 'normal'; $requires_approval = !empty($company['requires_approval']); - $is_active = !empty($company['is_active']); + $is_active = $isEdit ? !empty($company['is_active']) : true; // default active for new companies $erp_active_users = (int)($company['erp_active_users'] ?? 0); $reqAprChecked = $requires_approval ? 'checked' : ''; $isActChecked = $is_active ? 'checked' : '';