This Help forum is for issues relates to the latest release (1.7.0/1). For issues related to beta or github version please use their own Help forum.
Before asking for help please read "How to request help" by clicking on that tab above here."
  • Page:
  • 1

TOPIC:

[BUG] Interactive tree - doubled ancestors 5 years 7 months ago #1

  • swieka
  • swieka's Avatar Topic Author
  • Visitor
  • Visitor
One of my ancestors married a woman. When she died he married her sister. The interactive tree displays their (common) ancestors twice taking additional space in the chart.

Please Log in or Create an account to join the conversation.

[BUG] Interactive tree - doubled ancestors 5 years 7 months ago #2

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 14506

One of my ancestors married a woman. When she died he married her sister. The interactive tree displays their (common) ancestors twice taking additional space in the chart.


None of the charts will consider duplicate ancestors. You may see them on many charts.

So, this is actually working as designed.

Eliminating duplicates is very difficult. If you look at the "Greek Mythology" tree on the demo site, you will see individuals who marry their parents, siblings and children...
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

[BUG] Interactive tree - doubled ancestors 5 years 7 months ago #3

  • swieka
  • swieka's Avatar Topic Author
  • Visitor
  • Visitor
I'm not a PHP dev, however I'm a .Net dev so I have some programming background.

I'll refer to 1.7.0 as I'm not updated yet to the newest version, but I think it will be similar (if not the same).

I see that foreach individual the ancestors line is drawn is a separate table.
So if we can determine the spose relations before calling recursive drawPerson, and if they are from the same family pass 0 generations argument for all except first.

TreeView.php line: 265
foreach ($person->getSpouseFamilies() as $family)

Nothing critical, just and improvement idea :)

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum