Commit 9eaf4d18 authored by Matija Obreza's avatar Matija Obreza
Browse files

Fixed bug in mappings when HEADER_SPAUTHOR_CHECK or HEADER_SUBTAUTHOR_CHECK are injected

parent 54f4e71b
......@@ -285,12 +285,14 @@ public class GGTC {
if (!outputHeaders.contains(HEADER_SPAUTHOR_CHECK)) {
LOG.debug("Adding {} because it's missing", HEADER_SPAUTHOR_CHECK);
outputHeaders.add(outputHeaders.indexOf(HEADER_SPECIES) + 1, HEADER_SPAUTHOR_CHECK);
outputMapping.add(outputHeaders.indexOf(HEADER_SPAUTHOR_CHECK) + 1, null);
}
if (outputHeaders.contains(HEADER_SUBTAXA)) {
if (!outputHeaders.contains(HEADER_SUBTAUTHOR_CHECK)) {
LOG.debug("Adding {} because it's missing", HEADER_SUBTAUTHOR_CHECK);
outputHeaders.add(outputHeaders.size(), HEADER_SUBTAUTHOR_CHECK);
outputMapping.add(outputHeaders.indexOf(HEADER_SUBTAUTHOR_CHECK) + 1, null);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment