View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
15202Bug reportsExpression Managerpublic2020-10-28 18:10
Reportersbcha28 Assigned ToLimeBot  
PrioritynoneSeverityminor 
Status assignedResolutionopen 
Product Version3.17.x 
Summary15202: Date warning showing up even with correct date
Description

May not be an Expression Manager bug, it was just the closest thing that I think the issue applies to.

I put in the value of "today" in the Maximum Date section for a date question. All is working correctly except that no matter what date I select (ostensibly all dates today or before), I get a warning that pops up. It is very confusing for our users. The warning pops up even if I have the "Hide tip" selected as yes and a forum member indicated this may be a bug and encouraged me to file a bug report.

If not a bug, I would suggest deleting that warning.

TagsNo tags attached.
Attached Files
Date warning.PNG (13,457 bytes)   
Date warning.PNG (13,457 bytes)   
Bug heat8
Complete LimeSurvey version number (& build)3.17.13
I will donate to the project if issue is resolvedNo
BrowserFirefox
Database type & versionUnknown
Server OS (if known)
Webserver software & version (if known)
PHP VersionUnknown

Users monitoring this issue

There are no users monitoring this issue.

Activities

tpartner

tpartner

2019-08-28 23:45

partner   ~53330

For reference - https://www.limesurvey.org/forum/design-issues/119102-date-warning#188232

DenisChenu

DenisChenu

2019-08-29 09:05

developer   ~53331

@sbcha28 : can you send a lss (survey export) file please (with only this question) ?

sbcha28

sbcha28

2019-08-29 15:51

reporter   ~53342

Attaching the LSS file.

cdorin

cdorin

2019-09-04 18:12

reporter   ~53443

Thanks for report. I know Eddy was working on that so I will assign it to him :)

DenisChenu

DenisChenu

2019-09-04 18:56

developer   ~53446

@eddylackmann i check a little :

  1. strtotime("today") send false https://github.com/LimeSurvey/LimeSurvey/blob/95fefdbb749999afda9c9ca952c9bb5da8cab2f0/assets/scripts/expressions/em_javascript.js#L2486
  2. Must check https://github.com/LimeSurvey/LimeSurvey/blob/95fefdbb749999afda9c9ca952c9bb5da8cab2f0/assets/scripts/expressions/em_javascript.js#L1019 with strtotime (since PHP use SQL date version)

Issue History

Date Modified Username Field Change
2019-08-28 19:27 sbcha28 New Issue
2019-08-28 19:27 sbcha28 File Added: limesurvey_question_783.lsq
2019-08-28 19:27 sbcha28 File Added: Date warning.PNG
2019-08-28 23:45 tpartner Note Added: 53330
2019-08-29 09:05 DenisChenu Note Added: 53331
2019-08-29 15:51 sbcha28 File Added: limesurvey_survey_162343.lss
2019-08-29 15:51 sbcha28 Note Added: 53342
2019-09-04 18:12 cdorin Assigned To => LimeBot
2019-09-04 18:12 cdorin Status new => assigned
2019-09-04 18:12 cdorin Note Added: 53443
2019-09-04 18:56 DenisChenu Note Added: 53446
2020-10-28 17:53 LimeBot Sync to Zoho Project => |Yes|
2020-10-28 17:55 LimeBot Sync to Zoho Project Yes => |Yes|
2020-10-28 17:59 LimeBot Sync to Zoho Project Yes => |Yes|
2020-10-28 18:01 LimeBot Sync to Zoho Project Yes => |Yes|
2020-10-28 18:07 LimeBot Sync to Zoho Project Yes => |Yes|
2020-10-28 18:08 LimeBot Sync to Zoho Project Yes => |Yes|
2020-10-28 18:10 LimeBot Sync to Zoho Project Yes => |Yes|