- Posts: 41
Question getAllBirthPlaces and getAllDeathPlaces return only first one.
- elysch
- Topic Author
- Offline
- New Member
I found this function in app/Individual.php. AFAICT, this only returns the first place, because of the return inside the foreach.
I propose this instead:
I wanted to add all the death places in a list, that's why I discovered it.
Ely
webtrees 2.1.20
Please Log in or Create an account to join the conversation.
- elysch
- Topic Author
- Offline
- New Member
- Posts: 41
getAllBirthDates
getAllBirthPlaces
getAllDeathDates
getAllDeathPlaces
And these need changes to return the first one only:
getBirthDate
getBirthPlace
getDeathDate
getDeathPlace
Maybe these need to be changed too
getEstimatedBirthDate
getEstimatedDeathDate
webtrees 2.1.20
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
It returns *all* the BIRT places (if there are any).
If none are found, it returns all the CHR places (if there are any)
If none are found, it returns all the BAPM places (if there are any)
In other words, if we only have CHR/BAPM, then these are used as a fallback.
Similar for death. If we don't have any death places, we look for burial/cremation places.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- elysch
- Topic Author
- Offline
- New Member
- Posts: 41
The change would be from:
to
webtrees 2.1.20
Please Log in or Create an account to join the conversation.
- elysch
- Topic Author
- Offline
- New Member
- Posts: 41
> AFAICT, this only returns the first place
It returns *all* the BIRT places (if there are any).
If none are found, it returns all the CHR places (if there are any)
If none are found, it returns all the BAPM places (if there are any)
In other words, if we only have CHR/BAPM, then these are used as a fallback.
Similar for death. If we don't have any death places, we look for burial/cremation places.
Oh... I see... you're right.
I was looking for another function, then.
One that returns DEAT + BURI + CREM ... I understand now.
How would you call this new function?
webtrees 2.1.20
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
> One that returns DEAT + BURI + CREM ... I understand now.
> How would you call this new function?
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- elysch
- Topic Author
- Offline
- New Member
- Posts: 41
You're right. Feel kind of fool, hahaha
Sorry.
Well... I think are needed anyway the changes in ./resources/views/lists/individuals-table.phtml to add a </br>'s
webtrees 2.1.20
Please Log in or Create an account to join the conversation.