diff --git a/htdocs/admin/company.php b/htdocs/admin/company.php index 2d34f0bdb92..3d062b2a758 100644 --- a/htdocs/admin/company.php +++ b/htdocs/admin/company.php @@ -65,7 +65,7 @@ if ( (isset($_POST["action"]) && $_POST["action"] == 'update') { create_exdir($conf->societe->dir_logos); } - if (dol_move_uploaded_file($_FILES["logo"]["tmp_name"],$conf->societe->dir_logos.'/'.$original_file,1)) + if (dol_move_uploaded_file($_FILES["logo"]["tmp_name"],$conf->societe->dir_logos.'/'.$original_file,1) > 0) { dolibarr_set_const($db, "MAIN_INFO_SOCIETE_LOGO",$original_file); @@ -660,7 +660,7 @@ else $s.=' '; if ($conf->use_javascript_ajax) { - $s.=''.$langs->trans("VATIntraCheck").''; + $s.=''.$langs->trans("VATIntraCheck").''; print $form->textwithhelp($s,$langs->trans("VATIntraCheckDesc",$langs->trans("VATIntraCheck")),1); } else diff --git a/htdocs/comm/action/fiche.php b/htdocs/comm/action/fiche.php index 1ea40e93dae..9e7db4266c0 100644 --- a/htdocs/comm/action/fiche.php +++ b/htdocs/comm/action/fiche.php @@ -20,11 +20,11 @@ */ /** - \file htdocs/comm/action/fiche.php - \ingroup agenda - \brief Page for action card - \version $Id$ -*/ + * \file htdocs/comm/action/fiche.php + * \ingroup agenda + * \brief Page for action card + * \version $Id$ + */ require_once("./pre.inc.php"); require_once(DOL_DOCUMENT_ROOT."/contact.class.php"); @@ -110,6 +110,13 @@ if ($_POST["action"] == 'add_action') $_POST["a2day"], $_POST["a2year"]); + if (! $datep2 && $_POST["percentage"] == 100) + { + $error=1; + $_GET["action"] = 'create'; + $mesg='