fisharebest / webtrees

Online genealogy
https://webtrees.net
GNU General Public License v3.0
487 stars 301 forks source link

Record has multiple uid fields #4828

Open bschwede opened 1 year ago

bschwede commented 1 year ago

When editing sources, an additional unique identifier field (1 _UID) is added to the record each time. The same behavior is seen with media objects and repository records.

Version: WT 2.1.16, no additional modules activated Settings: Control panel > Manage family trees > Preferences Tree > Add unique identifiers = yes

See also: https://www.webtrees.net/index.php/en/forum/help-for-release-2-1-x/38047-record-has-multiple-uid-fields

fisharebest commented 1 year ago

When we edit a fact (or a complete record), webtrees adds all possible GEDCOM tags to create the edit form.

_UID can occur many times, so webtrees creates a new field.

_UID fields have a default value (a random UID).

So, using the "edit entire record" form will create a new _UID.

This is working as designed - but the design did not consider the consequences of the _UID logic.