Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: personal facts module #4853

Closed
ddrury opened this issue Jul 21, 2023 · 5 comments
Closed

Bug: personal facts module #4853

ddrury opened this issue Jul 21, 2023 · 5 comments

Comments

@ddrury
Copy link
Contributor

ddrury commented Jul 21, 2023

If the historic facts module has content and is enabled and an individual has no personal facts recorded then the message "There are no facts for this individual." should be displayed.

This doesn't happen because the historic events are included in the personal facts collection.

See this commit

@fisharebest
Copy link
Owner

Presumably, the same is true of events of relatives/associates.

@ddrury
Copy link
Contributor Author

ddrury commented Jul 22, 2023

No, they are never merged with anything else, it's only the individual facts that get the others merged

        $individual_facts = $individual_facts
            ->merge($family_facts)
            ->merge($relative_facts)
            ->merge($associate_facts)
            ->merge($historic_facts);

I've made a simple fix in #4854, just add this line before the merge
$has_individual_facts = $individual_facts->isNotEmpty();
then include it in the call to the view and test for it in the view

@ddrury
Copy link
Contributor Author

ddrury commented Jul 22, 2023

BTW maybe a good idea to merge into a more appropriate name ($all_facts?)

Later, I've just realised the meaning of your original question, yes you're right content in any of the other collections will affect the outcome (senior moment)

@arbor95
Copy link
Contributor

arbor95 commented Feb 18, 2024

Has this been done or is it obsolete?

@fisharebest
Copy link
Owner

The purpose of this text is simply to prevent a completely empty tab - which could be confusing.

If the historic facts module has content and is enabled and an individual has no personal facts recorded

We only show historic events that occur between the first and last personal event with a date.

So there should never be historic events and no personal events.

If this is happening, then it should be a separate bug report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants