View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
11511Bug reportsSurvey participants (Tokens)public2016-08-01 14:15
Reporteraesteban Assigned Toaesteban  
PrioritynoneSeverityminor 
Status closedResolutionfixed 
Product Version2.50.x 
Summary11511: Wrong new values in AuditLog logs when modifying token
Description

Wrong new values in AuditLog logs when modifying token

Steps To Reproduce

Create a restricted access survey.
Create a new token with empty token field
Create another token with empty token field
Modify the second one
Changed logged in AuditLog table mixed values from two tokens

Additional Information

The reason is that token is used to search for old values. Token is not the primary key of this table and can be empty:

AuditLog, line 211: $oldvalues= $this->api->getToken($iSurveyID, $oNewParticipant->token)->getAttributes();

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)54f02647ef4abfafee03c6e0abc7
I will donate to the project if issue is resolvedNo
BrowserFirefox
Database type & versionPostgres 9.4.8
Server OS (if known)Debian 8 Jessie
Webserver software & version (if known)Apache 2.4
PHP Version5.6.22

Users monitoring this issue

There are no users monitoring this issue.

Activities

aesteban

aesteban

2016-07-31 19:14

developer   ~40120

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

c_schmitz

c_schmitz

2016-08-01 14:15

administrator   ~40134

Version 2.50 Build 160731 released

Related Changesets

LimeSurvey: master 71cbc093

2016-07-31 17:13:56

aesteban

Details Diff
Fixed issue 11511: Wrong new values in AuditLog logs when modifying token Affected Issues
11511
mod - application/libraries/PluginManager/LimesurveyApi.php Diff File
mod - plugins/AuditLog/AuditLog.php Diff File

Issue History

Date Modified Username Field Change
2016-07-31 18:49 aesteban New Issue
2016-07-31 18:49 aesteban Status new => assigned
2016-07-31 18:49 aesteban Assigned To => aesteban
2016-07-31 19:14 aesteban Changeset attached => LimeSurvey master 71cbc093
2016-07-31 19:14 aesteban Note Added: 40120
2016-07-31 19:14 aesteban Resolution open => fixed
2016-07-31 19:16 aesteban Status assigned => resolved
2016-08-01 14:15 c_schmitz Note Added: 40134
2016-08-01 14:15 c_schmitz Status resolved => closed
2016-12-08 10:39 c_schmitz Category Tokens => Survey participants (Tokens)