diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php
index b527aa78e20..36c3491127f 100644
--- a/htdocs/html.form.class.php
+++ b/htdocs/html.form.class.php
@@ -1613,7 +1613,8 @@ class Form
if ($selected) {
$projet = new Project($this->db);
$projet->fetch($selected);
- print ''.$projet->title.'';
+ //print ''.$projet->title.'';
+ print $projet->getNomUrl(1);
} else {
print " ";
}
@@ -2394,9 +2395,9 @@ class Form
{
print ' selected="true"';
}
-
+
print '>';
-
+
if ($key_in_label)
{
$newval=($translate?$langs->trans($value):$value);
@@ -2413,7 +2414,7 @@ class Form
print "\n";
}
}
-
+
print "";
}
diff --git a/htdocs/lib/project.lib.php b/htdocs/lib/project.lib.php
index ed18c860c93..387053e82ce 100644
--- a/htdocs/lib/project.lib.php
+++ b/htdocs/lib/project.lib.php
@@ -95,7 +95,7 @@ function select_projects($socid, $selected='', $htmlname='projectid')
global $db;
// On recherche les projets
- $sql = 'SELECT p.rowid, p.title FROM ';
+ $sql = 'SELECT p.rowid, p.ref, p.title FROM ';
$sql.= MAIN_DB_PREFIX .'projet as p';
$sql.= " WHERE (fk_soc='".$socid."' or fk_soc IS NULL)";
$sql.= " ORDER BY p.title ASC";
@@ -115,11 +115,11 @@ function select_projects($socid, $selected='', $htmlname='projectid')
$obj = $db->fetch_object($resql);
if (!empty($selected) && $selected == $obj->rowid)
{
- print '';
+ print '';
}
else
{
- print '';
+ print '';
}
$i++;
}