Merge pull request #25015 from inovea-conseil/FIX_translation_extra_field_mass_action

FIX translation extrafield mass action #24080
This commit is contained in:
Laurent Destailleur 2023-06-09 11:49:57 +02:00 committed by GitHub
commit 8a1e7aaa66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -224,6 +224,10 @@ if ($massaction == 'edit_extrafields') {
if (!empty($extrafields_list)) {
$myParamExtra = $object->showOptionals($extrafields, 'create');
foreach ($extrafields_list as $extraKey => $extraLabel) {
$extrafields_list[$extraKey] = $langs->trans($extraLabel);
}
$formquestion[] = array(
'type' => 'other',
'value' => $form->selectarray('extrafield-key-to-update', $extrafields_list, GETPOST('extrafield-key-to-update'), 1)