From 7b2ceaf17760b7120c4e7a30ef2ee2161fb849c8 Mon Sep 17 00:00:00 2001 From: Francis <162715304+le-reparateur@users.noreply.github.com> Date: Sun, 30 Nov 2025 12:11:16 +0100 Subject: [PATCH] Add default supplier type handling in card.php in creation mode --- htdocs/societe/card.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/societe/card.php b/htdocs/societe/card.php index 119669da48f..1e90bf0a510 100644 --- a/htdocs/societe/card.php +++ b/htdocs/societe/card.php @@ -1011,8 +1011,9 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio $private = 0; } // by default supplier is a professional - if (GETPOST("type", 'aZ') == 'f') $private = 0; - + if (GETPOST("type", 'aZ') == 'f') { + $private = 0; + } // Load object modCodeClient $module = getDolGlobalString('SOCIETE_CODECLIENT_ADDON', 'mod_codeclient_leopard'); if (substr($module, 0, 15) == 'mod_codeclient_' && substr($module, -3) == 'php') {