View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
09701Bug reportsSurvey editingpublic2015-06-20 16:28
Reportertammo Assigned Tomfaber  
PrioritynormalSeverityminor 
Status closedResolutionno change required 
Product Version2.06+ 
Fixed in Version2.06+ 
Summary09701: Setting max date in date question does not work like before
Description

In 2.05 you could enter "date("Y-m-d")" as the maximum date and the survey would work. In 2.06 this results in an error.

Steps To Reproduce

Import attached question in 2.05: it works
Import attached question in 2.06: it does not work

TagsNo tags attached.
Attached Files
Bug heat8
Complete LimeSurvey version number (& build)2.06 150612
I will donate to the project if issue is resolvedNo
BrowserChrome
Database type & versionNot relevant
Server OS (if known)Not relevant
Webserver software & version (if known)Not relevant
PHP Version5.4

Relationships

related to 09591 closedmfaber Sometimes date_max / date_min validations for date/time questions doesn't allow to use the maximum date expected 

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2015-06-19 17:36

developer   ~32441

Better to send a complete lss files ... really more easy tammo :)

DenisChenu

DenisChenu

2015-06-19 17:43

developer   ~32442

@tammo : can not reproduce on the last GIT version. See survey attached

DenisChenu

DenisChenu

2015-06-19 17:46

developer   ~32443

Looking at your files : date("Y-m-d")+1 : it's not a valid date.

date("Y-m-d", strtotime("tomorrow"));

tammo

tammo

2015-06-19 17:53

developer   ~32446

OK, will change this in the survey. But strangely enough it did work in 2.05 and not in 2.06. I took this from a test survey by Mazi. I will inform him.

And yes, next time I will send a complete lss.

Mazi

Mazi

2015-06-19 21:49

updater   ~32455

Last edited: 2015-06-19 21:49

Denis, can you tell us how the underlying EM function has changed? That date adjustment works really nice at LS 2.05 so why not trying to keep it working?

Of course, your solutions works as well but my approach was mentioned at the forums several times and it is far easier to use for the user than having to include strtotime() as well.

I'd love to have this feature at 2.06 as well.

DenisChenu

DenisChenu

2015-06-20 10:41

developer   ~32456

Hi,

I don't understand why it work before ... Think actual solution is better and allow more option.

I assign to mfaber for information.

mfaber

mfaber

2015-06-20 12:23

reporter   ~32458

Denis: Away until end of next week so cannot look into this further at the mom. maybe the comments to related issue 09591 explains.

DenisChenu

DenisChenu

2015-06-20 16:28

developer   ~32460

https://bugs.limesurvey.org/view.php?id=9591#c32025

Issue History

Date Modified Username Field Change
2015-06-19 16:13 tammo New Issue
2015-06-19 16:13 tammo File Added: limesurvey_question_6463.lsq
2015-06-19 17:36 DenisChenu Note Added: 32441
2015-06-19 17:36 DenisChenu Assigned To => DenisChenu
2015-06-19 17:36 DenisChenu Status new => assigned
2015-06-19 17:42 DenisChenu File Added: limesurvey_survey_date.lss
2015-06-19 17:43 DenisChenu Note Added: 32442
2015-06-19 17:43 DenisChenu Status assigned => feedback
2015-06-19 17:46 DenisChenu Note Added: 32443
2015-06-19 17:53 tammo Note Added: 32446
2015-06-19 17:53 tammo Status feedback => assigned
2015-06-19 21:49 Mazi Note Added: 32455
2015-06-19 21:49 Mazi Note Edited: 32455
2015-06-20 10:41 DenisChenu Note Added: 32456
2015-06-20 10:41 DenisChenu Assigned To DenisChenu => mfaber
2015-06-20 12:16 mfaber Relationship added related to 09591
2015-06-20 12:23 mfaber Note Added: 32458
2015-06-20 16:28 DenisChenu Note Added: 32460
2015-06-20 16:28 DenisChenu Status assigned => closed
2015-06-20 16:28 DenisChenu Resolution open => no change required
2015-06-20 16:28 DenisChenu Fixed in Version => 2.06+
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing