diff --git a/htdocs/admin/company.php b/htdocs/admin/company.php index c261c5fa50a..2e51597bf91 100644 --- a/htdocs/admin/company.php +++ b/htdocs/admin/company.php @@ -48,7 +48,7 @@ $quality = 80; * Actions */ -if ( (isset($_POST["action"]) && $_POST["action"] == 'update') +if ( (isset($_POST["action"]) && $_POST["action"] == 'update' && empty($_POST["cancel"])) || (isset($_POST["action"]) && $_POST["action"] == 'updateedit') ) { require_once(DOL_DOCUMENT_ROOT."/lib/files.lib.php"); @@ -301,6 +301,7 @@ if ((isset($_GET["action"]) && $_GET["action"] == 'edit') print ''; print ''."\n"; + // Barcode if ($conf->barcode->enabled) { $var=!$var; @@ -309,9 +310,10 @@ if ((isset($_GET["action"]) && $_GET["action"] == 'edit') print ''; } + // Logo $var=!$var; print ''.$langs->trans("Logo").' (png,jpg)'; - print '
'; + print ''; + // Barcode if ($conf->barcode->enabled) { $var=!$var; print ''; } + // Logo $var=!$var; print '
'; print ''; print ''; if ($mysoc->logo_mini) @@ -566,7 +568,11 @@ if ((isset($_GET["action"]) && $_GET["action"] == 'edit') } - print '
'; + print '
'; + print ''; + print '     '; + print ''; + print '
'; print '
'; print ''; @@ -648,16 +654,18 @@ else $var=!$var; print '
'.$langs->trans("Web").'' . dol_print_url($conf->global->MAIN_INFO_SOCIETE_WEB,'_blank',80) . '
'.$langs->trans("Gencod").'' . $conf->global->MAIN_INFO_SOCIETE_GENCOD . '
'.$langs->trans("Logo").''; - print '
'; + print '
'; print $mysoc->logo; print '';