View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
08644Feature requestsSurvey editingpublic2014-05-03 21:34
Reporterjonaskoeppel Assigned Tomfaber  
PrioritynormalSeverityfeature 
Status closedResolutionfixed 
Summary08644: "Maximum/Minimum date" setting isn't saved after modifying it
Description

When 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.
Attached Files
maxdate.lss (12,819 bytes)
Bug heat2
Story point estimate
Users affected %

Users monitoring this issue

There are no users monitoring this issue.

Activities

mfaber

mfaber

2014-01-31 15:06

reporter   ~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"

mfaber

mfaber

2014-02-02 02:45

reporter   ~28393

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=13815

Related Changesets

LimeSurvey: master 771deaa3

2014-02-02 01:44:35

mfaber


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"
Affected Issues
08644
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
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing