Fix according to PR #14939

This commit is contained in:
Laurent Destailleur 2020-10-06 09:53:10 +02:00
parent 7c6c319607
commit 4290395375

View File

@ -1625,7 +1625,7 @@ if ($action == 'create')
} }
// Reopen // Reopen
if ($object->statut > Fichinter::STATUS_CLOSED) if ($object->statut >= Fichinter::STATUS_CLOSED)
{ {
if ($user->rights->ficheinter->creer) if ($user->rights->ficheinter->creer)
{ {
@ -1645,7 +1645,7 @@ if ($action == 'create')
} }
// create intervention model // create intervention model
if ($conf->global->MAIN_FEATURES_LEVEL >= 2 && $object->statut == Fichinter::STATUS_DRAFT && $user->rights->ficheinter->creer && (count($object->lines) > 0)) { if ($conf->global->MAIN_FEATURES_LEVEL >= 1 && $object->statut == Fichinter::STATUS_DRAFT && $user->rights->ficheinter->creer && (count($object->lines) > 0)) {
print '<div class="inline-block divButAction">'; print '<div class="inline-block divButAction">';
print '<a class="butAction" href="'.DOL_URL_ROOT.'/fichinter/card-rec.php?id='.$object->id.'&action=create">'.$langs->trans("ChangeIntoRepeatableIntervention").'</a>'; print '<a class="butAction" href="'.DOL_URL_ROOT.'/fichinter/card-rec.php?id='.$object->id.'&action=create">'.$langs->trans("ChangeIntoRepeatableIntervention").'</a>';
print '</div>'; print '</div>';