Revert "Closed projects are greyed out in project selector"
This reverts commit 68994823dd.
This commit is contained in:
parent
c3b255bce9
commit
fe9e7a0fa9
@ -115,17 +115,12 @@ class FormProjets
|
|||||||
{
|
{
|
||||||
$disabled=0;
|
$disabled=0;
|
||||||
$labeltoshow.=' '.dol_trunc($obj->title,$maxlength);
|
$labeltoshow.=' '.dol_trunc($obj->title,$maxlength);
|
||||||
if ($obj->fk_statut == 0)
|
if (! $obj->fk_statut > 0)
|
||||||
{
|
{
|
||||||
$disabled=1;
|
$disabled=1;
|
||||||
$labeltoshow.=' - '.$langs->trans("Draft");
|
$labeltoshow.=' - '.$langs->trans("Draft");
|
||||||
}
|
}
|
||||||
else if ($obj->fk_statut == 2)
|
if ($socid > 0 && (! empty($obj->fk_soc) && $obj->fk_soc != $socid))
|
||||||
{
|
|
||||||
$disabled=1;
|
|
||||||
$labeltoshow.=' - '.$langs->trans("Closed");
|
|
||||||
}
|
|
||||||
else if ($socid > 0 && (! empty($obj->fk_soc) && $obj->fk_soc != $socid))
|
|
||||||
{
|
{
|
||||||
$disabled=1;
|
$disabled=1;
|
||||||
$labeltoshow.=' - '.$langs->trans("LinkedToAnotherCompany");
|
$labeltoshow.=' - '.$langs->trans("LinkedToAnotherCompany");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user