View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
19205Bug reportsRemoteControlpublic2023-11-21 17:03
Reporterduvemyster Assigned Togabrieljenik  
PrioritynoneSeveritypartial_block 
Status closedResolutionsuspended 
Product Version5.6.x 
Summary19205: mail_registered_participants with tid specified is sending Reminder even when Invitation has not yet been sent
Description

When using mail_registered_participants with $overrideAllConditions specifying a single tid for which an invitation has not yet been sent, the Reminder message is being sent instead of the Invitation message.

Steps To Reproduce

Steps to reproduce

  1. add_participants with $bCreateToken = true; to add a new participant
  2. list_participants with $aConditions set to an identifier singling out the new participant to get $tid = $participants['0']['tid'];
  3. mail_registered_participants with $overrideAllConditions set to the new paricipant tid.

Expected result

Invitation Email sent

Actual result

Reminder Email was sent

TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)Version 5.6.40+231005
I will donate to the project if issue is resolvedNo
BrowserN/A
Database type & versionmysqlnd 7.4.32
Server OS (if known)linux
Webserver software & version (if known)Apache 2
PHP Version7.4.32

Users monitoring this issue

duvemyster

Activities

duvemyster

duvemyster

2023-10-27 23:37

reporter   ~78111

Correction. It is not sending the Reminder. Rather, it is sending the "survey registration confirmation". Is there something that I can set differently when adding the participant so that this send the Invitation instead of sending registration confirmation?

(BTW, I first tried to add this in the Forum before creating a bug ticket, but was unable to specify a different category different from "Installation & update issues".)

gabrieljenik

gabrieljenik

2023-11-13 20:42

manager   ~78440

OK, so this is not a bug.
It seems you are using mail_registered_participants for a different purpose and you are using the overrideConditions flag.

Please use invite_participants method.

Thanks

duvemyster

duvemyster

2023-11-21 16:41

reporter   ~78597

@gabrieljenik, how do you specify just one particular invite to send with invite_participants rather than it sending ALL pending invites?

duvemyster

duvemyster

2023-11-21 16:49

reporter   ~78598

@gabrieljenik -- Oh, I see it now -- $aTokenIds . Thank you! Apologies for mucking up the bug queue with something that turns out to not be a bug. And thank you for steering me in the correct direction!

duvemyster

duvemyster

2023-11-21 16:59

reporter   ~78601

For anyone who stumbles across this, here is a link to an example of the correct way to do this -- https://forums.limesurvey.org/forum/can-i-do-this-with-limesurvey/108580-api-invite-participants-to-a-survey#149782

gabrieljenik

gabrieljenik

2023-11-21 17:03

manager   ~78602

Thanks

Issue History

Date Modified Username Field Change
2023-10-27 17:54 duvemyster New Issue
2023-10-27 23:37 duvemyster Note Added: 78111
2023-10-27 23:37 duvemyster Bug heat 0 => 2
2023-10-30 15:02 duvemyster Issue Monitored: duvemyster
2023-10-30 15:02 duvemyster Bug heat 2 => 4
2023-10-31 20:15 gabrieljenik Assigned To => gabrieljenik
2023-10-31 20:15 gabrieljenik Status new => assigned
2023-10-31 20:16 gabrieljenik Severity minor => partial_block
2023-11-13 20:42 gabrieljenik Status assigned => closed
2023-11-13 20:42 gabrieljenik Resolution open => suspended
2023-11-13 20:42 gabrieljenik Note Added: 78440
2023-11-13 20:42 gabrieljenik Bug heat 4 => 6
2023-11-21 16:41 duvemyster Note Added: 78597
2023-11-21 16:49 duvemyster Note Added: 78598
2023-11-21 16:59 duvemyster Note Added: 78601
2023-11-21 17:03 gabrieljenik Note Added: 78602