Fix: Label not complete

This commit is contained in:
Laurent Destailleur 2012-11-30 19:39:22 +01:00
parent 008f5fbcfc
commit 9d17b8f96c

View File

@ -212,7 +212,7 @@ function select_projects($socid=-1, $selected='', $htmlname='projectid', $maxlen
//else $labeltoshow.=' ('.$langs->trans("Private").')';
if (!empty($selected) && $selected == $obj->rowid && $obj->fk_statut > 0)
{
print '<option value="'.$obj->rowid.'" selected="selected">'.$labeltoshow.'</option>';
print '<option value="'.$obj->rowid.'" selected="selected">'.$labeltoshow.' - '.dol_trunc($obj->title,$maxlength).'</option>';
}
else
{