View Issue Details

This issue affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
20903Bug reportsCentral participant databasepublic2026-11-28 14:35
ReporterDenisChenu Assigned Totibor.pacalat  
PrioritynoneSeverityminor 
Status confirmedResolutionopen 
Product Version7.11.x 
Summary20903: CPDB: attributes are not overwritten when the existing central participant is found by name and email
Description

When survey participants are added to the CPDB, an existing central participant is found by participant_id, or else by firstname, lastname and email (Participant::getDuplicates()).

With the overwrite options, Participant::updateAttributeValueToken() then reads the survey participant row with "participant_id = <id of the central participant>". When the central participant was found by firstname, lastname and email, the survey participant has no participant_id or another one: no row is found and nothing is copied. The participant is counted as a duplicate, but its attributes are not updated, without any message.

Steps To Reproduce

Steps to reproduce

  1. Create a central participant: John Smith, john@example.org.
  2. Create a survey with a survey participant table and an attribute (attribute_1).
  3. Add a survey participant John Smith, john@example.org, without participant_id, with a value in attribute_1.
  4. Add this survey participant to the CPDB: map attribute_1 to a CPDB attribute, check the option to overwrite the existing values.

Expected result (to confrim)

The participant is reported as a duplicate and the CPDB attribute of John Smith gets the value of attribute_1.

Like wha we impirt via CSV

Actual result

The participant is reported as a duplicate, the CPDB attribute is not changed.

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)7.12.0
I will donate to the project if issue is resolvedNo
Browsernot relevant
Database type & versionnot relevant
Server OS (if known)not relevant
Webserver software & version (if known)not relevant
PHP Versionnot relevant
Git branch / Pull Request URLN/A

Relationships

related to 20902 confirmedtibor.pacalat CPDB: overwriting attributes of an existing central participant from a survey copies the raw value, encryption settings are igno 
related to 20906 newtibor.pacalat Survey participant attribute encryption setting is not respected when sharing CPDB participants 

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2026-11-26 16:32

developer   ~87973

Last edited: 2026-11-26 16:33

Possible fix, like the CSV import of the CPDB: use the values of the survey participant being added (the decrypted TokenDynamic already loaded in Participant::copyToCentral()), and write them on the participant_id of the central participant found, instead of looking up the survey participant row by this participant_id.

tibor.pacalat

tibor.pacalat

2026-11-26 16:54

administrator   ~87976

Last edited: 2026-11-26 16:55

I can not reproduce with instructions you provided (see screencast). Also didn't understand what do you mean create participant without participant_id.

DenisChenu

DenisChenu

2026-11-26 16:58

developer   ~87977

I check tomorrow
https://github.com/LimeSurvey/LimeSurvey/pull/4459#discussion_r4710442883

DenisChenu

DenisChenu

2026-11-28 12:15

developer   ~87991

Last edited: 2026-11-28 12:19

Oups, it' sthis issu ehere

I create participants in the token of survey system only.

Maybe you're already have a participant_id?

  1. Create a CPDB with first last email@exemple.org and CPDB managemen
  2. Create a token in a survey with first last email@exemple.org and token managemen
  3. Move user to CPDB

Near this one : https://streamable.com/d2f8ld

DenisChenu

DenisChenu

2026-11-28 14:34

developer   ~87999

See the screencast

Issue History

Date Modified Username Field Change
2026-11-26 16:32 DenisChenu New Issue
2026-11-26 16:32 DenisChenu Note Added: 87973
2026-11-26 16:32 DenisChenu Bug heat 0 => 2
2026-11-26 16:33 DenisChenu Note Edited: 87973
2026-11-26 16:54 tibor.pacalat Note Added: 87976
2026-11-26 16:54 tibor.pacalat File Added: Screen-2026-11-26-165136.mp4
2026-11-26 16:54 tibor.pacalat Bug heat 2 => 4
2026-11-26 16:55 tibor.pacalat Note Edited: 87976
2026-11-26 16:58 DenisChenu Note Added: 87977
2026-11-26 17:05 tibor.pacalat Assigned To => DenisChenu
2026-11-26 17:05 tibor.pacalat Status new => feedback
2026-11-28 12:15 DenisChenu Note Added: 87991
2026-11-28 12:15 DenisChenu File Added: Capture vidéo du 2026-11-28 12-13-24.mp4
2026-11-28 12:18 DenisChenu Note Edited: 87991
2026-11-28 12:19 DenisChenu Note Edited: 87991
2026-11-28 14:33 DenisChenu Relationship added related to 20906
2026-11-28 14:34 DenisChenu Assigned To DenisChenu => tibor.pacalat
2026-11-28 14:34 DenisChenu Status feedback => confirmed
2026-11-28 14:34 DenisChenu Note Added: 87999
2026-11-28 14:35 DenisChenu Relationship added related to 20902