View Issue Details

IDProjectCategoryView StatusLast Update
08644Feature requests[All Projects] Survey designpublic2014-05-03 21:34
ReporterjonaskoeppelAssigned Tomfaber 
Status closedResolutionfixed 
Product Version2.05+ 
Target VersionFixed in Version2.05+ 
Summary08644: "Maximum/Minimum date" setting isn't saved after modifying it
DescriptionWhen using an Expression from the Expression Manager for the "Maximum date" or "Minimum date" setting of a "Date/Time" question type the information is saved at first. But when modifying it, a part of the expression is lost.

Steps to reproduce the bug:
1. create a survey with standard settings
2. create a question group with standard settings
3. create a question of the type Date/Time
4. set the advanced settings "Maximum date" and "Minimum date" to "date('Y', time())" and save the question
The setting is saved and visible in the question overview.
5. modify the question and go to advanced settings
The "Maximum date" and "Minimum date" fields are set to "date("
TagsNo tags attached.




2014-01-31 14:12


maxdate.lss (12,819 bytes)


2014-01-31 15:06

developer   ~28326

jonaskoeppel: I see. There is a problem with single quotes "'"

Although you may enter a full year (e.g. "2014" or "2010"), expression always need to return a full date/timestamp.

I'd suggest to try:

For MinDate: date("Y", time())+"-01-01"
For MaxDate: date("Y", time())+"-12-31 23:59"


2014-02-02 02:45

developer   ~28393

Fix committed to master branch:

Related Changesets

LimeSurvey: master 771deaa3

2014-02-02 01:44:35


Committer: mfaber Details Diff
Fixed issue 08644: Incomplete display of adv. attributes containing single quotes

Dev: single quote ended string in "input"
Dev: no problem with "textarea"
mod - application/views/admin/survey/Question/advanced_settings_view.php Diff File

Issue History

Date Modified Username Field Change
2014-01-31 14:12 jonaskoeppel New Issue
2014-01-31 14:12 jonaskoeppel File Added: maxdate.lss
2014-01-31 14:26 mfaber Assigned To => mfaber
2014-01-31 14:26 mfaber Status new => assigned
2014-01-31 15:06 mfaber Note Added: 28326
2014-02-02 02:45 mfaber Changeset attached => LimeSurvey master 771deaa3
2014-02-02 02:45 mfaber Note Added: 28393
2014-02-02 02:45 mfaber Resolution open => fixed
2014-02-02 02:54 mfaber Status assigned => resolved
2014-02-02 02:54 mfaber Product Version => 2.05+
2014-02-02 02:54 mfaber Fixed in Version => 2.05+
2014-05-03 21:34 c_schmitz Status resolved => closed