Can choose project not linked to a third party in entities

This commit is contained in:
Laurent Destailleur 2008-12-27 23:15:47 +00:00
parent d9888dfe86
commit ff49c3c833
2 changed files with 5 additions and 5 deletions

View File

@ -1572,7 +1572,7 @@ if ($_GET['action'] == 'create')
$html->select_types_paiements($mode_reglement_id,'mode_reglement_id');
print '</td></tr>';
// Projet
// Project
if ($conf->projet->enabled)
{
$langs->load('projects');

View File

@ -53,9 +53,9 @@ function project_prepare_head($objsoc)
/**
\brief Affiche la liste déroulante des projets d'une société donnée
\param socid Id société
\param selected Id projet pré-sélectionné
\brief Affiche la liste d<EFBFBD>roulante des projets d'une soci<EFBFBD>t<EFBFBD> donn<EFBFBD>e
\param socid Id soci<EFBFBD>t<EFBFBD>
\param selected Id projet pr<EFBFBD>-s<EFBFBD>lectionn<EFBFBD>
\param htmlname Nom de la zone html
\return int Nbre de projet si ok, <0 si ko
*/
@ -66,7 +66,7 @@ function select_projects($socid, $selected='', $htmlname='projectid')
// On recherche les projets
$sql = 'SELECT p.rowid, p.title FROM ';
$sql.= MAIN_DB_PREFIX .'projet as p';
$sql.= " WHERE fk_soc='".$socid."'";
$sql.= " WHERE (fk_soc='".$socid."' or fk_soc IS NULL)";
$sql.= " ORDER BY p.title ASC";
dolibarr_syslog("project.lib::select_projects sql=".$sql);