diff --git a/htdocs/contrat/card.php b/htdocs/contrat/card.php
index ef5a8a0b0ed..836070f970b 100644
--- a/htdocs/contrat/card.php
+++ b/htdocs/contrat/card.php
@@ -937,7 +937,7 @@ if ($action == 'create')
// Ref Int
print '
| '.$langs->trans('RefCustomer').' | ';
- print ' |
';
+ print ' | ';
// Customer
print '';
diff --git a/htdocs/core/tpl/extrafields_view.tpl.php b/htdocs/core/tpl/extrafields_view.tpl.php
index 1591ce9fb6d..d344ef5eb82 100644
--- a/htdocs/core/tpl/extrafields_view.tpl.php
+++ b/htdocs/core/tpl/extrafields_view.tpl.php
@@ -48,7 +48,7 @@ if (empty($reshook) && ! empty($extrafields->attribute_label))
print '| attribute_required [$key])) print ' class="fieldrequired"';
print '>' . $label . ' | ';
- if (($object->statut == 0 || $extrafields->attribute_alwayseditable[$key]) && $user->rights->propal->creer && ($action != 'edit_extras' || GETPOST('attribute') != $key))
+ if (($object->statut == 0 || $extrafields->attribute_alwayseditable[$key]) && $user->rights->{$object->element}->creer && ($action != 'edit_extras' || GETPOST('attribute') != $key))
print '' . img_edit().' | ';
print '
';
@@ -59,9 +59,9 @@ if (empty($reshook) && ! empty($extrafields->attribute_label))
$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->propal->creer && GETPOST('attribute') == $key)
+ if ($action == 'edit_extras' && $user->rights->{$object->element}->creer && GETPOST('attribute') == $key)
{
- print '