View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
19221Bug reportsPluginspublic2023-11-06 17:52
ReporterDenisChenu Assigned To 
PrioritynoneSeverityminor 
Status newResolutionopen 
Product Version5.6.x 
Summary19221: Options of survey during beforeSurveySettings take oly group settings
Description

When use
$surveyId = $oEvent->get("survey");
$oSurvey = Survey::model()->findByPk($surveyId);
$isAnonymized = $oSurvey->getIsAnonymized():

in beforeSurveySettings event : get Group values and not survey value

Steps To Reproduce

Steps to reproduce

Import included plugin and actvate
Set you group settings to

  • Anonymous : On
  • Enable participant-based response persistence: OFF
  • Allow public registration: OFF
    Import included survey and check settings

Expected result

See Anonymous option to OFF
See Enable participant-based response persistence option to ON
See Allow public registration option to ON

(Survey settings)

Actual result

See Anonymous option to ON
See Enable participant-based response persistence option to OFF
See Allow public registration option to OFF

(Group settings)

TagsNo tags attached.
Attached Files
Bug heat2
Complete LimeSurvey version number (& build) 5.6.42
I will donate to the project if issue is resolvedNo
Browsernot relevant
Database type & versionmariadb
Server OS (if known)debian
Webserver software & version (if known)nginx
PHP Version7.4

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2023-11-06 16:59

developer   ~78295

Since i do the plugin, i likie to fix it when it's confirmded.
Not tested currently on 6.X

DenisChenu

DenisChenu

2023-11-06 17:50

developer   ~78297

optionsSurveyTest.zip (1,159 bytes)
DenisChenu

DenisChenu

2023-11-06 17:52

developer   ~78298

Last edited: 2023-11-06 17:52

Desired behaviour (to be confirmed)

  • oSurvey->anonymized return current DB value
  • oSurvey->oOptions->anonymized return current value (always)
  • oSurvey->getIsAnonymized() return current value too.

No ?

Issue History

Date Modified Username Field Change
2023-11-06 16:59 DenisChenu New Issue
2023-11-06 16:59 DenisChenu File Added: Capture d’écran du 2023-11-06 16-51-18.png
2023-11-06 16:59 DenisChenu File Added: optionsSurveyTest.zip
2023-11-06 16:59 DenisChenu Note Added: 78295
2023-11-06 16:59 DenisChenu Bug heat 0 => 2
2023-11-06 17:50 DenisChenu File Deleted: optionsSurveyTest.zip
2023-11-06 17:50 DenisChenu Note Added: 78297
2023-11-06 17:50 DenisChenu File Added: optionsSurveyTest.zip
2023-11-06 17:52 DenisChenu Note Added: 78298
2023-11-06 17:52 DenisChenu Note Edited: 78298