Skip to content

Commit

Permalink
Merge pull request #901 from Evarisk/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
evarisk-micka authored Apr 10, 2024
2 parents 1c93fdd + 903d88e commit 98a3bab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/object.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ function saturne_get_objects_metadata(string $type = ''): array
if (!empty($objectMetadata['langfile'])) {
$langs->load($objectMetadata['langfile']);
}
if (dol_strlen($type) > 0) {
if (dol_strlen($type) > 0 && empty($otherNameType)) {
$otherNameType = (!empty(array_search($type, $objectMetadata)) ? $objectType : '');
}
}
Expand Down

0 comments on commit 98a3bab

Please sign in to comment.