View Issue Details

This bug affects 1 person(s).
 12
IDProjectCategoryView StatusLast Update
04934Bug reportsData Entry (non public)public2011-02-17 18:25
Reporteruser11942Assigned ToDenisChenu  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.90+ 
Fixed in Version1.91RC4 
Summary04934: GSoC - Editing a response in the data entry form always resets the answer to "not completed" in private surveys
Description

When I edit a completed response of an answer in a private survey, it will get the status "not completed", even though I chose Completed - "Yes" in the edit form.
The problem does not occur with answers that are marked as incomplete - these can be set to completed by using the data entry screen.

Additional Information

In the data entry edit form for private surveys, the "submitdate" select always has an empty value for the option that corresponds to the answer's current status (either
<option value="" selected="selected">Yes</option>
if the answer has the status "completed" or
<option value="" selected="selected">No</option>
otherwise).

In dataentry.php, however, an empty value for "submitdate" in the "editresponse" form is always treated as "not completed":
-- clip from admin/dataentry.php, line 1291-1294 --
elseif (($irow['type'] == 'submitdate') && ($thisvalue == 'N' || $thisvalue == ''))
{
$updateqr .= db_quote_id($fieldname)." = NULL, \n";
}
-- end of clip --

TagsNo tags attached.
Bug heat12
Complete LimeSurvey version number (& build)9642
I will donate to the project if issue is resolvedNo
Browser(browser-independent problem)
Database type & versiondoesn't matter
Server OS (if known)doesn't matter
Webserver software & version (if known)doesn't matter
PHP Versiondoesn't matter

Relationships

has duplicate 04992 closedDenisChenu Date entry window not load submitdate in completed field value - on save survey response is changed to not completed 

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2011-02-16 00:08

developer   ~14193

Fixed in 9794 (just some minute before RC4), some fix after RC4 :)

c_schmitz

c_schmitz

2011-02-17 18:25

administrator   ~14214

1.91RC4 released

Issue History

Date Modified Username Field Change
2011-02-04 21:11 user11942 New Issue
2011-02-06 19:06 DenisChenu Assigned To => DenisChenu
2011-02-06 19:06 DenisChenu Status new => assigned
2011-02-09 15:48 Mazi Summary Editing a response in the data entry form always resets the answer to "not completed" in private surveys => GSoC - Editing a response in the data entry form always resets the answer to "not completed" in private surveys
2011-02-16 00:08 DenisChenu Note Added: 14193
2011-02-16 00:08 DenisChenu Status assigned => resolved
2011-02-16 00:08 DenisChenu Fixed in Version => 1.91RC4
2011-02-16 00:08 DenisChenu Resolution open => fixed
2011-02-17 18:25 c_schmitz Note Added: 14214
2011-02-17 18:25 c_schmitz Status resolved => closed
2011-03-02 18:25 DenisChenu Relationship added has duplicate 04992