Can choose project not linked to a third party in entities
This commit is contained in:
parent
d9888dfe86
commit
ff49c3c833
@ -1572,7 +1572,7 @@ if ($_GET['action'] == 'create')
|
|||||||
$html->select_types_paiements($mode_reglement_id,'mode_reglement_id');
|
$html->select_types_paiements($mode_reglement_id,'mode_reglement_id');
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// Projet
|
// Project
|
||||||
if ($conf->projet->enabled)
|
if ($conf->projet->enabled)
|
||||||
{
|
{
|
||||||
$langs->load('projects');
|
$langs->load('projects');
|
||||||
|
|||||||
@ -53,9 +53,9 @@ function project_prepare_head($objsoc)
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\brief Affiche la liste déroulante des projets d'une société donnée
|
\brief Affiche la liste d<EFBFBD>roulante des projets d'une soci<EFBFBD>t<EFBFBD> donn<EFBFBD>e
|
||||||
\param socid Id société
|
\param socid Id soci<EFBFBD>t<EFBFBD>
|
||||||
\param selected Id projet pré-sélectionné
|
\param selected Id projet pr<EFBFBD>-s<EFBFBD>lectionn<EFBFBD>
|
||||||
\param htmlname Nom de la zone html
|
\param htmlname Nom de la zone html
|
||||||
\return int Nbre de projet si ok, <0 si ko
|
\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
|
// On recherche les projets
|
||||||
$sql = 'SELECT p.rowid, p.title FROM ';
|
$sql = 'SELECT p.rowid, p.title FROM ';
|
||||||
$sql.= MAIN_DB_PREFIX .'projet as p';
|
$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";
|
$sql.= " ORDER BY p.title ASC";
|
||||||
|
|
||||||
dolibarr_syslog("project.lib::select_projects sql=".$sql);
|
dolibarr_syslog("project.lib::select_projects sql=".$sql);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user