diff --git a/htdocs/contrat/fiche.php b/htdocs/contrat/fiche.php index 38a2b3f1095..0545ce2e25d 100644 --- a/htdocs/contrat/fiche.php +++ b/htdocs/contrat/fiche.php @@ -1137,7 +1137,7 @@ else $value = isset($_POST ["options_" . $key]) ? dol_mktime($_POST ["options_" . $key . "hour"], $_POST ["options_" . $key . "min"], 0, $_POST ["options_" . $key . "month"], $_POST ["options_" . $key . "day"], $_POST ["options_" . $key . "year"]) : $db->jdate($object->array_options ['options_' . $key]); } - if ($action == 'edit_extras' && $user->rights->commande->creer && GETPOST('attribute') == $key) { + if ($action == 'edit_extras' && $user->rights->contrat->creer && GETPOST('attribute') == $key) { print '
'; } else { print $extrafields->showOutputField($key, $value); - if ($object->statut == 0 && $user->rights->commande->creer) + if ($object->statut == 0 && $user->rights->contrat->creer) print '' . img_picto('', 'edit') . ' ' . $langs->trans('Modify') . ''; } print '' . "\n";