View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
19778 | Bug reports | Other | public | 2024-09-27 11:34 | 2025-05-27 15:48 |
Reporter | DenisChenu | Assigned To | gabrieljenik | ||
Priority | none | Severity | minor | ||
Status | assigned | Resolution | open | ||
Product Version | 6.6.x | ||||
Summary | 19778: getIsDateStamp return false with date stamped survey | ||||
Description | In survey settings : if you have datestamp globally tpo N and survey datestamp to Y : getIsDateStamp return false | ||||
Steps To Reproduce | Steps to reproduceImport and activate included plugin Expected resultSee Survey getIsDateStamp are : true and Survey options->datestamp are : Y Actual resultSee Survey getIsDateStamp are : false and Survey options->datestamp are : N | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 4 | ||||
Complete LimeSurvey version number (& build) | 6.6.5 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | not relevant | ||||
Database type & version | not relevant | ||||
Server OS (if known) | not relevant | ||||
Webserver software & version (if known) | not relevant | ||||
PHP Version | not relevant | ||||
PS : i really don't understand all this code … https://github.com/LimeSurvey/LimeSurvey/blob/78a2949a70c0f98bb53882ccfd21a7faa27501ca/application/models/SurveysGroupsettings.php#L311 We end by survey : https://github.com/LimeSurvey/LimeSurvey/blob/78a2949a70c0f98bb53882ccfd21a7faa27501ca/application/models/SurveysGroupsettings.php#L362 But we need to start by survey, and not end by … |
|
@tibor.pacalat : my solution here is a big rewrite of the system. |
|
I'm still unsure on the desired behavior … Opinion: Survey->datestamp must return Y/N or I ? |
|
@gabrieljenik : do you have an opinion here ? Plugin can need to read if settings are inherited or not In Survey settings part OK for
In Survey and all other controller : Survey->datestamp = Survey->options->datestamp |
|
Agree. That is the survey data field.
I guess you talk about oOptions.
Agree.
Not sure I follow that statement. Still, if the datestamp is Inherited, could end up |
|
It's the current situation : when you check Survey->datestamp in beforeSurveyPage or newExport for example : you get Survey->oOptions->datestamp . Updating this : we broke a lot of plugins ! Only update for beforeSurveySettings and newSurveySettings (seems the only situation where we have this issue) or when controller are SurveyAdministrationController The upadte was here : https://github.com/LimeSurvey/LimeSurvey/blob/ec5825c1ce2c5d953b1f634e2e57e837c9df2c12/application/controllers/SurveyAdministrationController.php#L1923 |
|
From what I read, I think the issue could be in 2 places maybe: 1) Inheritance Mechanism in SurveysGroupsettings::getInstance 2) The line you commented (https://github.com/LimeSurvey/LimeSurvey/blob/ec5825c1ce2c5d953b1f634e2e57e837c9df2c12/application/controllers/SurveyAdministrationController.php#L1923) maybe fecthing the instance from the cache and then setting the options for the instance in the cache, whereas in other places options should be set from inheritance. Will debug and be back |
|
This one is very strange .... |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2024-09-27 11:34 | DenisChenu | New Issue | |
2024-09-27 11:34 | DenisChenu | File Added: DateStampSettingsIssue.zip | |
2024-09-27 11:34 | DenisChenu | File Added: Capture d’écran du 2024-09-27 11-31-55.png | |
2024-09-27 11:36 | DenisChenu | Note Added: 81122 | |
2024-09-27 11:36 | DenisChenu | Bug heat | 0 => 2 |
2024-10-02 17:02 | tibor.pacalat | Assigned To | => DenisChenu |
2024-10-02 17:02 | tibor.pacalat | Status | new => assigned |
2024-10-07 11:00 | DenisChenu | Note Added: 81173 | |
2025-02-18 11:09 | DenisChenu | Note Added: 82058 | |
2025-05-22 11:06 | DenisChenu | Assigned To | DenisChenu => gabrieljenik |
2025-05-22 11:06 | DenisChenu | Status | assigned => feedback |
2025-05-22 11:06 | DenisChenu | Note Added: 82732 | |
2025-05-22 11:07 | DenisChenu | Note Edited: 82732 | |
2025-05-23 23:19 | gabrieljenik | Note Added: 82754 | |
2025-05-23 23:19 | gabrieljenik | Bug heat | 2 => 4 |
2025-05-26 08:44 | DenisChenu | Note Added: 82757 | |
2025-05-26 08:44 | DenisChenu | Status | feedback => assigned |
2025-05-27 15:43 | gabrieljenik | Note Added: 82774 | |
2025-05-27 15:48 | DenisChenu | Note Added: 82775 |