diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index e4f6ec7bbcb..7a69172889e 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -5760,7 +5760,7 @@ class Form $disabled = ($disabled ? ' disabled' : ''); $resultyesno = ''."\n"; - if ($useempty) $resultyesno .= ''."\n"; + if ($useempty) $resultyesno .= ' '."\n"; if (("$value" == 'yes') || ($value == 1)) { $resultyesno .= ''.$langs->trans("Yes").''."\n"; diff --git a/htdocs/societe/card.php b/htdocs/societe/card.php index cb99949407b..d6710f68c92 100644 --- a/htdocs/societe/card.php +++ b/htdocs/societe/card.php @@ -582,6 +582,7 @@ if (empty($reshook)) if (! empty($backtopage)) { + if (preg_match('/\?/', $backtopage)) $backtopage.='&socid='.$object->id; header("Location: ".$backtopage); exit; } @@ -1065,7 +1066,7 @@ else print ''; $selected=isset($_POST['client'])?GETPOST('client'):$object->client; print ''; - if (GETPOST("type") == '') print ''; + if (GETPOST("type") == '') print ' '; if (empty($conf->global->SOCIETE_DISABLE_PROSPECTS)) print ''.$langs->trans('Prospect').''; if (empty($conf->global->SOCIETE_DISABLE_PROSPECTS) && empty($conf->global->SOCIETE_DISABLE_CUSTOMERS) && empty($conf->global->SOCIETE_DISABLE_PROSPECTSCUSTOMERS)) print ''.$langs->trans('ProspectCustomer').''; if (empty($conf->global->SOCIETE_DISABLE_CUSTOMERS)) print ''.$langs->trans('Customer').'';