From a11e7db31c6fc4ff643dfd47d9be455be552734d Mon Sep 17 00:00:00 2001 From: ldestailleur Date: Sun, 11 May 2025 12:31:55 +0200 Subject: [PATCH] FIX Can set default value of the nature of member --- htdocs/adherents/card.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/adherents/card.php b/htdocs/adherents/card.php index 3e9335a30d1..adede9add85 100644 --- a/htdocs/adherents/card.php +++ b/htdocs/adherents/card.php @@ -1054,7 +1054,8 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) { $morphys = array(); $morphys["phy"] = $langs->trans("Physical"); $morphys["mor"] = $langs->trans("Moral"); - $checkednature = (GETPOSTISSET("morphy") ? GETPOST("morphy", 'alpha') : $object->morphy); + $checkednature = ((GETPOSTISSET("morphy") || $action == 'create' )? GETPOST("morphy", 'alpha') : $object->morphy); + print ''.$langs->trans("MemberNature")."\n"; print ''; print '';