Skip to content
Snippets Groups Projects
Commit a659f918 authored by svornost's avatar svornost
Browse files

Set mother/daughter relationships up correctly in generateRelatedSlave when familyTesting is on.

parent 8f1643f2
No related branches found
No related tags found
No related merge requests found
......@@ -115,6 +115,9 @@ window.generateRelatedSlave = (function() {
if (!V.familyTesting) {
slave.relation = "daughter";
slave.relationTarget = slave.ID - 1000;
} else {
slave.mother = slave.genes === "XX" ? slave.ID - 1000 : 0;
slave.father = slave.genes !== "XX" ? slave.ID - 1000 : 0;
}
// select age
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment