Fix non-working "Sources" tab in individual.php
Brought to you by:
canajun2eh,
yalnifj
Ref: bug # 1114401
Module individual.php incorrectly looks for SOUR items
as level 1. They are, in fact, recorded at level 2 and
are embedded in level 1 records.
The fix consists of removing all mention of SOUR within
the 3 instances of the code that looks for level 1
OBJE, NOTE, and SEX facts, and adding a new pattern
match for "/2\sSOUR\s@.+@/". When found, the entire
record containing the level 2 SOUR reference is copied
according to the original code.
When generating the contents of Tab 3 (Sources), the
pattern to look for is changed as shown above.
A revised individual.php module (base code level: 3.2.2
final) is attached as individual.zip
Logged In: YES
user_id=1198414
Please close this.
The Sources tab works the way it's supposed to. It's only
supposed to display sources that aren't attached to specific
Facts.
I'll submit an RFE to change this. After discussion, I'll
re-work the logic as required.
Logged In: YES
user_id=918839
I close this as John probably is Busy