View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
09073Bug reportsData Entry (non public)public2014-06-18 16:40
Reporterdonwito Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.05+ 
Fixed in Version2.05+ 
Summary09073: Data entered in quotation marks disappears
Description

In question type "multiple short text", when user enters one of the short answers in quotation marks (double upper quotes), it is accepted and saved without error. But if user decides to return to such previous answer, this particular short answer is not restored properly from the database to the data entry screen. This one particular label remains empty, while other short answers in the same question - if they were entered wihout quotation marks - are restored. The problem does not occure in "long free text" question type and with single quotes.

Steps To Reproduce
  1. Create a sample survey which allows user to go back to previous questions;
  2. Create a sample "multiple short text" question with at least 4 short fields (4 just for testing purposes - the number of fields actually does not matter);
  3. Start answering the questions; insert (a) a text without any quotation marks, (b) a text with a part inside quotation marks, (c) a text all taken in quotation marks, (d) and a text with single quotation marks;
  4. Save your answer (go to next question) - no erros should be generated;
  5. Look at this response from the response browser side (as admin) - all answers are visible, which suggests they're properly stored in the database;
  6. Return to "multiple short text" question answered before;
  7. Your short answers (a) and (d) will be restored OK, a part of answer (b) that was outside the quotation marks will be restored, whole answer (c) will not be restored;
  8. Try to go to the next question again; if the question is set as mandatory, you will see an error - answer to a mandatory question not provided;
  9. In this moment your answer with quotation marks (c) is erased from the database - you will see an empty field when browsing through responses from admin side.
Additional Information

Tested on citronade, bluandgrey and eirenicon templates.

TagsNo tags attached.
Attached Files
Bug heat2
Complete LimeSurvey version number (& build)Version 2.05+ Build 140520
I will donate to the project if issue is resolvedNo
Browser
Database type & versionmysql Ver 14.14 Distrib 5.5.37, for debian-linux-gnu (i686)
Server OS (if known)Ubuntu Server 12.04.4 LTS 64 bit
Webserver software & version (if known)Apache/2.2.22 (Ubuntu)
PHP Version5.3.10-1ubuntu3.11

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2014-06-06 16:12

administrator   ~30067

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

c_schmitz

c_schmitz

2014-06-18 16:40

administrator   ~30171

LimeSurvey 2.05+ Build 140618 released.

Related Changesets

LimeSurvey: master 2bdb1c73

2014-06-06 14:11:11

c_schmitz

Details Diff
Fixed issue 09073: Data entered in quotation marks disappears in multiple text question type Affected Issues
09073
mod - application/helpers/qanda_helper.php Diff File

Issue History

Date Modified Username Field Change
2014-06-06 12:56 donwito New Issue
2014-06-06 12:56 donwito File Added: limesurvey_survey_896177.lss
2014-06-06 16:10 c_schmitz Assigned To => c_schmitz
2014-06-06 16:10 c_schmitz Status new => assigned
2014-06-06 16:12 c_schmitz Changeset attached => LimeSurvey master 2bdb1c73
2014-06-06 16:12 c_schmitz Note Added: 30067
2014-06-06 16:12 c_schmitz Resolution open => fixed
2014-06-06 16:12 c_schmitz Status assigned => resolved
2014-06-06 16:12 c_schmitz Fixed in Version => 2.05+
2014-06-18 16:40 c_schmitz Note Added: 30171
2014-06-18 16:40 c_schmitz Status resolved => closed