From be82c05ed426a09b6b3ebc0db816abaffcdaf29e Mon Sep 17 00:00:00 2001 From: Rico Sonntag Date: Wed, 22 Sep 2021 07:37:18 +0200 Subject: [PATCH] Updated README and docblock --- README.md | 3 +-- src/Module.php | 4 +++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 87a4a43..d0efcd0 100644 --- a/README.md +++ b/README.md @@ -57,14 +57,13 @@ on ``Charts`` (in subsection Genealogy). Enable the ``Descendants chart`` custom installed descendants chart module) and save your settings. ![Control panel - Module administration](assets/control-panel-modules.png) +*Fig. 2: Control panel - Module administration* ## Usage At the charts' menu, you will find a new link called `Descendants chart`. Use the provided configuration options to adjust the layout of the charts according to your needs. -Right-clicking on an individual opens a tooltip providing more detailed information of the current individual. - ## Development To build/update the javascript, run the following commands: diff --git a/src/Module.php b/src/Module.php index 0f0733b..c6a0378 100644 --- a/src/Module.php +++ b/src/Module.php @@ -274,7 +274,9 @@ private function buildJsonTree(?Individual $individual, int $generation = 1): ar return []; } - $data = $this->getIndividualData($individual, $generation); + $data = $this->getIndividualData($individual, $generation); + + /** @var null|Family $family */ $families = $individual->spouseFamilies(); if (!$families->count()) {