Ignore fully numeric inputs in MDConcObjectTagRelTypes, map them to

general tags
This commit is contained in:
2026-02-06 00:20:00 +01:00
parent 7630e46a36
commit 5dcfbaa0a1

View File

@@ -103,6 +103,8 @@ final class MDConcObjectTagRelTypes implements MDImporterConcordanceListInterfac
return self::RELATION_TYPE_NAMES[trim(strtolower($input))];
}
if (is_numeric($input)) return 'tag';
if (isset(self::RELATION_TYPES_MAPPED_TO_EVENTS[strtolower($input)])) {
throw new MDImporterTagRelationTypeIsEventType("Tag-object relationship type is signifies not tags, but an event component.");
}