View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
08083Bug reportsCentral participant databasepublic2014-01-25 17:22
ReporterSki Assigned Toc_schmitz  
PrioritynormalSeveritypartial_block 
Status closedResolutionfixed 
Product Version2.00+ 
Target Version2.05 RCFixed in Version2.05+ 
Summary08083: using token:attribute_cpdb_X in question gives unknown variable
Description

I am using attributes from the token-table as variables in survey questions. This works normally as you may expect.
I tried using the CPDB, defined a user with accompanying attributes and copied that user to the survey, mapping all attributes. The attribute-name changes from 'attribute_x' to 'attribute_cpdb_x'. When I change the variable name equally in my survey-question, it reports an unknown variable. Whatever syntax I try, the variable remains unknown. (I have tried capitials and small characters, I have tried with and without the cpdb addition, all to no avail).
I would like to use the CPDB, since I want to use 30+ attributes with multiple-choice type values to control survey logic (whether to activate a question group or not for a particular user).

Steps To Reproduce

See description

Additional Information

See description

TagsNo tags attached.
Bug heat8
Complete LimeSurvey version number (& build)130708
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMySQL 5.1.63
Server OS (if known)Mandriva 2010.1
Webserver software & version (if known)Apache 20051115
PHP VersionPHP/5.3.14

Relationships

related to 08496 closedtpartner Undefined attributes in Central Participant Database 

Users monitoring this issue

Ski

Activities

c_schmitz

c_schmitz

2013-10-07 11:23

administrator   ~26571

Jason, any idea on this? What good are cpdb-created attributed if they can't be used in the survey?

Ski

Ski

2013-10-08 14:11

reporter   ~26623

Thanks C Schmitz, if I understand correct this will be included in 2.05 RC, right?

c_schmitz

c_schmitz

2014-01-18 16:40

administrator   ~27987

Jason, feedback please?

tpartner

tpartner

2014-01-19 16:34

partner   ~28007

This may be related to the behaviour I reported here - http://bugs.limesurvey.org/view.php?id=8496#c27975.

c_schmitz

c_schmitz

2014-01-22 12:44

administrator   ~28069

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

c_schmitz

c_schmitz

2014-01-22 14:42

administrator   ~28071

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

c_schmitz

c_schmitz

2014-01-22 16:05

administrator   ~28078

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

c_schmitz

c_schmitz

2014-01-22 16:18

administrator   ~28079

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

c_schmitz

c_schmitz

2014-01-22 16:27

administrator   ~28080

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

c_schmitz

c_schmitz

2014-01-22 16:29

administrator   ~28081

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

c_schmitz

c_schmitz

2014-01-25 17:22

administrator   ~28151

2.05+ Build 140125 released

Related Changesets

LimeSurvey: master dda9435c

2014-01-22 11:44:17

c_schmitz

Details Diff
Fixed issue 08083: Token attributes being mapped to the CPDB cannot be properly used
Dev Partial fix
Affected Issues
08083
mod - application/controllers/admin/participantsaction.php Diff File
mod - application/controllers/admin/tokens.php Diff File
mod - application/helpers/common_helper.php Diff File
mod - application/models/Participant.php Diff File
mod - application/models/ParticipantAttributeName.php Diff File
mod - application/models/Survey.php Diff File
mod - application/views/admin/token/managetokenattributes.php Diff File
mod - styles/blobblueish/adminstyle.css Diff File
mod - styles/darkblue/adminstyle.css Diff File
mod - styles/gringegreen/adminstyle.css Diff File

LimeSurvey: master f932b031

2014-01-22 13:41:53

c_schmitz

Details Diff
Fixed issue 08083: Token attributes being mapped to the CPDB cannot be properly used Affected Issues
08083
mod - application/config/version.php Diff File
mod - application/helpers/update/updatedb_helper.php Diff File
mod - installer/sql/create-mssql.sql Diff File
mod - installer/sql/create-mysql.sql Diff File
mod - installer/sql/create-pgsql.sql Diff File

LimeSurvey: master 85ca290f

2014-01-22 15:04:57

c_schmitz

Details Diff
Fixed issue 08083: Token attributes being mapped to the CPDB cannot be properly used Affected Issues
08083
mod - application/controllers/admin/tokens.php Diff File
mod - application/models/Survey.php Diff File

LimeSurvey: master fdd1937a

2014-01-22 15:18:41

c_schmitz

Details Diff
Fixed issue 08083: Token attributes being mapped to the CPDB cannot be properly usedmall fix Affected Issues
08083
mod - application/models/Survey.php Diff File

LimeSurvey: master 1fbbd86e

2014-01-22 15:27:21

c_schmitz

Details Diff
Fixed issue 08083: Token attributes being mapped to the CPDB cannot be properly usedmall fix Affected Issues
08083
mod - application/models/Survey.php Diff File

LimeSurvey: master faf310fe

2014-01-22 15:29:12

c_schmitz

Details Diff
Fixed issue 08083: Token attributes being mapped to the CPDB cannot be properly usedmall fix Affected Issues
08083
mod - application/models/Survey.php Diff File

Issue History

Date Modified Username Field Change
2013-08-05 12:31 Ski New Issue
2013-08-05 12:32 Ski Issue Monitored: Ski
2013-08-06 14:06 c_schmitz Assigned To => jcleeland
2013-08-06 14:06 c_schmitz Status new => assigned
2013-10-07 11:23 c_schmitz Note Added: 26571
2013-10-07 11:23 c_schmitz Target Version => 2.05 RC
2013-10-07 11:23 c_schmitz Status assigned => feedback
2013-10-08 14:11 Ski Note Added: 26623
2013-10-08 14:11 Ski Status feedback => assigned
2014-01-18 16:40 c_schmitz Note Added: 27987
2014-01-18 16:40 c_schmitz Status assigned => feedback
2014-01-19 16:34 tpartner Note Added: 28007
2014-01-19 20:24 c_schmitz Relationship added related to 08496
2014-01-19 20:25 c_schmitz Assigned To jcleeland => c_schmitz
2014-01-19 20:25 c_schmitz Status feedback => assigned
2014-01-22 12:44 c_schmitz Changeset attached => LimeSurvey master dda9435c
2014-01-22 12:44 c_schmitz Note Added: 28069
2014-01-22 12:44 c_schmitz Resolution open => fixed
2014-01-22 14:42 c_schmitz Changeset attached => LimeSurvey master f932b031
2014-01-22 14:42 c_schmitz Note Added: 28071
2014-01-22 15:09 c_schmitz Status assigned => resolved
2014-01-22 15:09 c_schmitz Fixed in Version => 2.05+
2014-01-22 16:05 c_schmitz Changeset attached => LimeSurvey master 85ca290f
2014-01-22 16:05 c_schmitz Note Added: 28078
2014-01-22 16:18 c_schmitz Changeset attached => LimeSurvey master fdd1937a
2014-01-22 16:18 c_schmitz Note Added: 28079
2014-01-22 16:27 c_schmitz Changeset attached => LimeSurvey master 1fbbd86e
2014-01-22 16:27 c_schmitz Note Added: 28080
2014-01-22 16:29 c_schmitz Changeset attached => LimeSurvey master faf310fe
2014-01-22 16:29 c_schmitz Note Added: 28081
2014-01-25 17:22 c_schmitz Note Added: 28151
2014-01-25 17:22 c_schmitz Status resolved => closed
2021-08-02 19:48 guest Bug heat 6 => 8