View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
17214Bug reportsRemoteControlpublic2022-07-20 14:43
ReporterJmantysalo Assigned Togabrieljenik  
PrioritynoneSeverityminor 
Status closedResolutionsuspended 
Product Version4.4.13 
Summary17214: add_participants, non-consecutive participant id numbers
Description

I was asked to make a helper program that copies participant list from a survey to another. I did basically

$people = $conn->list_participants($sessionKey, $survey_id_source, 0, 100000, false, array('attribute_1'));
foreach ($people as $person)
$conn->add_participants($sessionKey, $survey_id_destination, array($person), false);

and this works IF id numbers in the participants table of source survey are consecutive numbers. But if there is a gap I got participants that have no name nor email.

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)Version 4.4.13+210315
I will donate to the project if issue is resolvedNo
Browser
Database type & versionN/A
Server OS (if known)
Webserver software & version (if known)
PHP VersionN/A

Users monitoring this issue

There are no users monitoring this issue.

Activities

gabrieljenik

gabrieljenik

2022-07-14 00:35

manager   ~70917

Hello Jmantysalo,
This ticket has been open for quite some time.
Do you have any new info / feedback?

I don't see anything strange on the code.
Still, there has been some updates on that method.

Can you please check if this issue still exists in the latest version of LimeSurvey and let us know?

Thank you!

Jmantysalo

Jmantysalo

2022-07-20 12:05

reporter   ~71051

It seems that id-value is now ignored when using add_pariticipants. Hence this issue can be closed.

Issue History

Date Modified Username Field Change
2021-03-30 08:37 Jmantysalo New Issue
2022-06-01 01:38 gabrieljenik Status new => acknowledged
2022-07-14 00:35 gabrieljenik Assigned To => gabrieljenik
2022-07-14 00:35 gabrieljenik Status acknowledged => feedback
2022-07-14 00:35 gabrieljenik Note Added: 70917
2022-07-14 00:35 gabrieljenik Bug heat 0 => 2
2022-07-20 12:05 Jmantysalo Note Added: 71051
2022-07-20 12:05 Jmantysalo Bug heat 2 => 4
2022-07-20 12:05 Jmantysalo Status feedback => assigned
2022-07-20 14:43 gabrieljenik Status assigned => closed
2022-07-20 14:43 gabrieljenik Resolution open => suspended