diff --git a/htdocs/adherents/card.php b/htdocs/adherents/card.php
index e19215ee72a..b2c7b4a8ca7 100644
--- a/htdocs/adherents/card.php
+++ b/htdocs/adherents/card.php
@@ -1059,7 +1059,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 '';
diff --git a/htdocs/product/card.php b/htdocs/product/card.php
index b29207af743..4eb3116109e 100644
--- a/htdocs/product/card.php
+++ b/htdocs/product/card.php
@@ -1742,7 +1742,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
if (getDolGlobalString('PRODUCT_USE_UNITS')) {
print ' |
| '.$langs->trans('DefaultUnitToShow').' | ';
print '';
- print $form->selectUnits(GETPOSTISSET('unit') ? GETPOST('unit', 'alpha') : (GETPOST('unit', 'alpha') ?: '0'), 'units');
+ print $form->selectUnits(GETPOSTISSET('units') ? GETPOST('units', 'alpha') : (GETPOST('units', 'alpha') ?: '0'), 'units');
print ' |
';
}
diff --git a/htdocs/societe/card.php b/htdocs/societe/card.php
index 0cc46217162..0398a81fced 100644
--- a/htdocs/societe/card.php
+++ b/htdocs/societe/card.php
@@ -1489,8 +1489,10 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
break;
}
- $selectedprospect = (GETPOSTISSET('prospect') ? GETPOSTINT('prospect') : $selectedprospect);
- $selectedcustomer = (GETPOSTISSET('customer') ? GETPOSTINT('customer') : $selectedcustomer);
+ $selectedprospect = ((GETPOSTISSET('prospect') || $action == 'create') ? GETPOSTINT('prospect') : $selectedprospect);
+ $selectedcustomer = ((GETPOSTISSET('customer') || $action == 'create') ? GETPOSTINT('customer') : $selectedcustomer);
+ $selectedsupplier = ((GETPOSTISSET('supplier') || $action == 'create') ? GETPOSTINT('supplier') : $object->fournisseur);
+
print '';
if ($conf->browser->layout != 'phone') {
print '| '.$form->editfieldkey('', 'customerprospect', '', $object, 0, 'string', '', 0).' | ';
@@ -1508,8 +1510,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
if ((isModEnabled("fournisseur") && $user->hasRight('fournisseur', 'lire') && !getDolGlobalString('MAIN_USE_NEW_SUPPLIERMOD')) || (isModEnabled("supplier_order") && $user->hasRight('supplier_order', 'lire')) || (isModEnabled("supplier_invoice") && $user->hasRight('supplier_invoice', 'lire'))
|| (isModEnabled('supplier_proposal') && $user->hasRight('supplier_proposal', 'lire'))) {
// Supplier
- $selected = (GETPOSTISSET('supplier') ? GETPOSTINT('supplier') : $object->fournisseur);
- print '';
+ print '';
}
// Add js to manage the background of nature
if ($conf->use_javascript_ajax) {
diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php
index 5339d3b8b0b..eda5ab8557a 100644
--- a/htdocs/theme/md/style.css.php
+++ b/htdocs/theme/md/style.css.php
@@ -8626,7 +8626,7 @@ table.jPicker {
}
div.tmenucenter {
- max-width: px; /* size of viewport */
+ max-width: px; /* size of viewport */
text-overflow: clip;
}
.menuhider div.tmenucenter {