Ignore fully numeric inputs in MDConcObjectTagRelTypes, map them to
general tags
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user