diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index 06528788cd0..cc1ac676c6d 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -651,7 +651,7 @@ class Form * \param htmlname Nom de la zone html * \return int Nbre de projet si ok, <0 si ko */ - function select_projects($socid='', $selected='', $htmlname='projectid') + function select_projects($socid, $selected='', $htmlname='projectid') { // On recherche les projets $sql = 'SELECT p.rowid, p.title FROM '; @@ -659,6 +659,8 @@ class Form $sql.= " WHERE fk_soc='".$socid."'"; $sql.= " ORDER BY p.title ASC"; + dolibarr_syslog("html.form.class::select_projects sql=$sql"); + $result=$this->db->query($sql); if ($result) { @@ -1513,6 +1515,7 @@ class Form function form_project($page, $socid, $selected='', $htmlname='projectid') { global $langs; + $langs->load("project"); if ($htmlname != "none") { diff --git a/htdocs/soc.php b/htdocs/soc.php index 2cac966db7e..6114a35dc39 100644 --- a/htdocs/soc.php +++ b/htdocs/soc.php @@ -395,7 +395,7 @@ if ($_POST["getcustomercode"] || $_POST["getsuppliercode"] || $form->select_array("effectif_id",$soc->effectif_array(), $soc->effectif_id); print ''; - print '
'.$langs->trans('VATIntraShort').'
'; + print '
'.$langs->trans('VATIntraShort').'
'; print '
'; print ''; @@ -803,7 +803,7 @@ else print ''; print yn($soc->tva_assuj); print ''; - print ''.$langs->trans('VATIntraShort').''; + print ''.$langs->trans('VATIntraShort').''; print $soc->tva_intra; print '';