View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
09261Bug reportsSurvey participants (Tokens)public2014-10-20 13:49
Reporterjnday Assigned ToDenisChenu  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.05+ 
Fixed in Version2.05+ 
Summary09261: emailstatus and language not filled by default when using remotecontrol invite_participants
Description

Since updating to Version 2.05+ Build 140915 (from 2.0) token entries added with Remote Control function invite_participants do not have the fields emailstatus and language set as expected. Both fields are set to NULL instead of OK and (for my system) en.

Steps To Reproduce

I used the following PHP code to invite. This worked prior to update, but I'm including it in case there is a problem with the way I'm doing things now in 2.05.

$participant_data_array[] = array(
'email' => $add_user['email'],
'lastname' => $add_user['last_name'],
'firstname' => $add_user['first_name'],
'attribute_1' => $add_user['class_title'],
'attribute_2' => $add_user['class_date'],
'attribute_3' => $add_user['class_presenter'],
'attribute_4' => $add_user['class_obj1'],
'attribute_5' => $add_user['class_obj2'],
'attribute_6' => $add_user['class_obj3'],
'attribute_7' => $add_user['class_id'],
'attribute_8' => $add_user['user_id']
);

try {
$participants = $myJSONRPCClient->add_participants($sessionKey, $this_survey_id, $participant_data_array, true);
} catch (Exception $e) {
die('Caught add_participants exception: ' . $e->getMessage());
}

Additional Information

This is similar to bug 8961

http://bugs.limesurvey.org/view.php?id=8961

TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)140915
I will donate to the project if issue is resolvedNo
BrowserChrome
Database type & versionMySQL 5.5.39-MariaDB
Server OS (if known)Linux
Webserver software & version (if known)Apache 2.2.27
PHP Version5.4.31

Relationships

related to 08961 closedDenisChenu importing tokens: 2 "new" fields "Email status" and "Language" not filled causes bug on send email invitations 

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2014-09-29 16:33

developer   ~30711

Language is not really needed, right ?

jnday

jnday

2014-09-29 16:36

reporter   ~30713

I don't believe language is needed. Just added it because it was mentioned in related bug and wasn't being set automatically here either.

DenisChenu

DenisChenu

2014-09-29 18:26

developer   ~30715

You can try https://github.com/LimeSurvey/LimeSurvey/pull/223/files but this disallow empty string for email status. Think it's great, nobody have the use of empty string on emailstatus (or ?????)

jnday

jnday

2014-09-29 20:55

reporter   ~30716

I think that's ok. I was already expecting some value, so this is good.

DenisChenu

DenisChenu

2014-10-06 09:31

developer   ~30739

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=14548

c_schmitz

c_schmitz

2014-10-20 13:49

administrator   ~30833

Version 2.05+ Build 141020 released

Related Changesets

LimeSurvey: master 665382e5

2014-09-29 16:17:22

DenisChenu

Details Diff
Fixed issue 09261: emailstatus not filled by default when using remotecontrol invite_participants
Dev: move default value to OK to models BUT : this disallow empty string : is this OK ?
Dev: for token : use 'caseSensitive'=>false can be done, but only for mySQL
Dev: add unknow error (from rules) after import token and tracevar the errors
Affected Issues
09261
mod - application/controllers/admin/tokens.php Diff File
mod - application/models/Token.php Diff File
mod - application/models/TokenDynamic.php Diff File
mod - application/views/admin/token/csvpost.php Diff File

LimeSurvey: master 4484e621

2014-10-06 07:31:22

DenisChenu

Details Diff
Merge pull request #223 from Shnoulle/master_fix09261

Dev : merged Fixed issue 09261: emailstatus not filled by default when using remotecontrol invite_participants
Affected Issues
09261
mod - application/controllers/admin/tokens.php Diff File
mod - application/models/Token.php Diff File
mod - application/models/TokenDynamic.php Diff File
mod - application/views/admin/token/csvpost.php Diff File

Issue History

Date Modified Username Field Change
2014-09-26 20:36 jnday New Issue
2014-09-27 14:32 DenisChenu Relationship added related to 08961
2014-09-29 16:33 DenisChenu Note Added: 30711
2014-09-29 16:36 jnday Note Added: 30713
2014-09-29 18:26 DenisChenu Note Added: 30715
2014-09-29 20:55 jnday Note Added: 30716
2014-09-30 08:41 DenisChenu Assigned To => DenisChenu
2014-09-30 08:41 DenisChenu Status new => assigned
2014-10-06 09:31 DenisChenu Changeset attached => LimeSurvey master 665382e5
2014-10-06 09:31 DenisChenu Changeset attached => LimeSurvey master 4484e621
2014-10-06 09:31 DenisChenu Note Added: 30739
2014-10-06 09:31 DenisChenu Resolution open => fixed
2014-10-09 13:11 DenisChenu Status assigned => resolved
2014-10-09 13:11 DenisChenu Fixed in Version => 2.05+
2014-10-20 13:49 c_schmitz Note Added: 30833
2014-10-20 13:49 c_schmitz Status resolved => closed
2016-12-08 10:39 c_schmitz Category Tokens => Survey participants (Tokens)