浏览代码

FIX: Error mesg show untranslated extrafield name (#30227)

Co-authored-by: Noé <noe@scopen.fr>
noec764 11 月之前
父节点
当前提交
96a5479e9e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      htdocs/core/class/commonobject.class.php

+ 1 - 1
htdocs/core/class/commonobject.class.php

@@ -6228,7 +6228,7 @@ abstract class CommonObject
 			foreach ($new_array_options as $key => $value) {
 				$attributeKey      = substr($key, 8); // Remove 'options_' prefix
 				$attributeType     = $extrafields->attributes[$this->table_element]['type'][$attributeKey];
-				$attributeLabel    = $extrafields->attributes[$this->table_element]['label'][$attributeKey];
+				$attributeLabel    = $langs->transnoentities($extrafields->attributes[$this->table_element]['label'][$attributeKey]);
 				$attributeParam    = $extrafields->attributes[$this->table_element]['param'][$attributeKey];
 				$attributeRequired = $extrafields->attributes[$this->table_element]['required'][$attributeKey];
 				$attributeUnique   = $extrafields->attributes[$this->table_element]['unique'][$attributeKey];