Skip to content

Commit

Permalink
fix performance bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hartenthaler committed Sep 14, 2021
1 parent 4c5ce9d commit 73948d2
Show file tree
Hide file tree
Showing 5 changed files with 5,001 additions and 7 deletions.
9 changes: 5 additions & 4 deletions ExtendedFamily.php
Original file line number Diff line number Diff line change
Expand Up @@ -1342,11 +1342,11 @@ private function addIndividualToFamily(object &$extendedFamilyPart, Individual $
$newObj->family = $family;
$newObj->members[] = $individual;
if ( !in_array($extendedFamilyPart->partName, $nolabelGroups) ) {

/*
if ($referencePerson) { // tbd: Logik verkehrt !!! Richtige Personen auswählen (siehe Kommentar ganz oben)!
$this->getRelationshipName($referencePerson);
}

*/
$labels = array_merge($labels, $this->generateChildLabels($individual));
$newObj->labels[] = $labels;
$newObj->families[] = $family;
Expand Down Expand Up @@ -1401,7 +1401,7 @@ private function addIndividualToFamily(object &$extendedFamilyPart, Individual $
* @param Individual $individual
*
* @return string
*/
private function getRelationshipName(Individual $individual): string
{
if (ExtendedFamilyTabModule::VestaModulesAvailable(false)) {
Expand All @@ -1412,7 +1412,8 @@ private function getRelationshipName(Individual $individual): string
}
return '';
}

*/

/**
* add an individual to a group of the extended family
*
Expand Down
2 changes: 1 addition & 1 deletion ExtendedFamilyTabModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class ExtendedFamilyTabModule extends AbstractModule implements ModuleTabInterfa
public const CUSTOM_DESCRIPTION = 'A tab showing the extended family of an individual.';
public const CUSTOM_AUTHOR = 'Hermann Hartenthaler';
public const CUSTOM_WEBSITE = 'https://github.com/hartenthaler/' . self::CUSTOM_MODULE . '/';
public const CUSTOM_VERSION = '2.0.16.52';
public const CUSTOM_VERSION = '2.0.16.53';
public const CUSTOM_LAST = 'https://github.com/hartenthaler/' . self::CUSTOM_MODULE. '/raw/main/latest-version.txt';

/* find members of extended family parts
Expand Down
2 changes: 1 addition & 1 deletion latest-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.16.52
2.0.16.53
2 changes: 1 addition & 1 deletion module.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
namespace Hartenthaler\Webtrees\Module\ExtendedFamily;

use Fisharebest\Webtrees\Webtrees;

use function app;

//webtrees major version switch
Expand Down

0 comments on commit 73948d2

Please sign in to comment.