';
diff --git a/htdocs/core/triggers/interface_50_modTicket_TicketEmail.class.php b/htdocs/core/triggers/interface_50_modTicket_TicketEmail.class.php
index 12b688d9b61..cab6779bf8c 100644
--- a/htdocs/core/triggers/interface_50_modTicket_TicketEmail.class.php
+++ b/htdocs/core/triggers/interface_50_modTicket_TicketEmail.class.php
@@ -157,7 +157,7 @@ class InterfaceTicketEmail extends DolibarrTriggers
if (is_array($object->array_options) && count($object->array_options) > 0) {
foreach ($object->array_options as $key => $value) {
$key = substr($key, 8); // remove "options_"
- $message_admin .= '
'.$langs->trans($extraFields->attributes[$object->element]['label'][$key]).' : '.$extraFields->showOutputField($key, $value).'';
+ $message_admin .= '
'.$langs->trans($extraFields->attributes[$object->element]['label'][$key]).' : '.$extraFields->showOutputField($key, $value, '', $object->table_element).'';
}
}
$message_admin .= '';
diff --git a/htdocs/fourn/class/fournisseur.product.class.php b/htdocs/fourn/class/fournisseur.product.class.php
index 5b523d8d7e8..fc3054fdd51 100644
--- a/htdocs/fourn/class/fournisseur.product.class.php
+++ b/htdocs/fourn/class/fournisseur.product.class.php
@@ -635,7 +635,7 @@ class ProductFournisseur extends Product
* @param int $limit Limit
* @param int $offset Offset
* @param int $socid Filter on a third party id
- * @return array Array of Products with new properties to define supplier price
+ * @return array Array of ProductFournisseur with new properties to define supplier price
*/
public function list_product_fournisseur_price($prodid, $sortfield = '', $sortorder = '', $limit = 0, $offset = 0, $socid = 0)
{
diff --git a/htdocs/hrm/admin/admin_establishment.php b/htdocs/hrm/admin/admin_establishment.php
index dd17a2be4b0..11a34b939a2 100644
--- a/htdocs/hrm/admin/admin_establishment.php
+++ b/htdocs/hrm/admin/admin_establishment.php
@@ -99,7 +99,6 @@ if ($result) {
$num = $db->num_rows($result);
$i = 0;
- // Load attribute_label
print '
';
print '';
print_liste_field_titre("Ref", $_SERVER["PHP_SELF"], "e.ref", "", "", "", $sortfield, $sortorder);
diff --git a/htdocs/product/fournisseurs.php b/htdocs/product/fournisseurs.php
index 02e0211c01d..b79fe5fb843 100644
--- a/htdocs/product/fournisseurs.php
+++ b/htdocs/product/fournisseurs.php
@@ -1211,7 +1211,7 @@ END;
$obj = $db->fetch_object($resql);
foreach ($extralabels as $key => $value) {
if (!empty($arrayfields['ef.'.$key]['checked']) && !empty($extrafields->attributes["product_fournisseur_price"]['list'][$key]) && $extrafields->attributes["product_fournisseur_price"]['list'][$key] != 3) {
- print '| '.$extrafields->showOutputField($key, $obj->{$key})." | ";
+ print ''.$extrafields->showOutputField($key, $obj->{$key}, '', 'product_fournisseur_price')." | ";
}
}
}
diff --git a/htdocs/public/ticket/create_ticket.php b/htdocs/public/ticket/create_ticket.php
index 00eff71da78..1a11b16d1ea 100644
--- a/htdocs/public/ticket/create_ticket.php
+++ b/htdocs/public/ticket/create_ticket.php
@@ -297,7 +297,7 @@ if (empty($reshook) && $action == 'create_ticket' && GETPOST('save', 'alpha')) {
if (is_array($object->array_options) && count($object->array_options) > 0) {
foreach ($object->array_options as $key => $value) {
$key = substr($key, 8); // remove "options_"
- $message_admin .= ''.$langs->trans($extrafields->attributes[$object->element]['label'][$key]).' : '.$extrafields->showOutputField($key, $value).'';
+ $message_admin .= ''.$langs->trans($extrafields->attributes[$object->table_element]['label'][$key]).' : '.$extrafields->showOutputField($key, $value, '', $object->table_element).'';
}
}
$message_admin .= '';
diff --git a/htdocs/public/ticket/list.php b/htdocs/public/ticket/list.php
index db5f5d8d754..4fbfd29106a 100644
--- a/htdocs/public/ticket/list.php
+++ b/htdocs/public/ticket/list.php
@@ -651,7 +651,7 @@ if ($action == "view_ticketlist") {
}
print '>';
$tmpkey = 'options_'.$key;
- print $extrafields->showOutputField($key, $obj->$tmpkey, '', 1);
+ print $extrafields->showOutputField($key, $obj->$tmpkey, '', $object->table_element);
print '';
}
}