View Issue Details

This issue affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
08215Bug reportsSurvey takingpublic2013-10-13 18:05
Reportermlhess Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionunable to reproduce 
Product Version2.05 RC 
Summary08215: Unable to save survey Creating default object from empty value
Description

with line 460 in red.

if (isTokenCompletedDatestamped($thissurvey))
449 {
450 $token->completed = $today;
451 } else {
452 $token->completed = 'Y';
453 }
454 if(isset($token->participant_id))
455 {
456 $slquery = SurveyLink::model()->find('participant_id = :pid AND survey_id = :sid AND token_id = :tid', array(':pid'=> $token->participant_id, ':sid'=>$surveyid, ':tid'=>$token->tid));
457
458 if (isTokenCompletedDatestamped($thissurvey))
459 {
460 $slquery->date_completed = $today;
461 } else {
462 // Update the survey_links table if necessary, to protect anonymity, use the date_created field date
463 $slquery->date_completed = $slquery->date_created;
464 }
465 $slquery->save();
466 }
467 }
468 $token->usesleft--;
469 }
470 $token->save();
471
472 if ($quotaexit==false)

TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)b6597da82c5dbfe07e016c2c9304
I will donate to the project if issue is resolvedNo
Browser
Database type & versionmysql
Server OS (if known)ubuntu
Webserver software & version (if known)linux
PHP Version5.4

Users monitoring this issue

There are no users monitoring this issue.

Activities

mlhess

mlhess

2013-10-02 00:36

reporter   ~26466

This has something to do with the date being saved to the tokens table it seems.

sammousa

sammousa

2013-10-02 09:39

reporter   ~26467

The file is application/helpers/frontend_helper.php

mlhess

mlhess

2013-10-02 17:37

reporter   ~26482

This is related to the partipant_id being empty rather than null. I am not sure how it was empty, but I have fixed it by doing a global replace. My guess is some data got imported.

c_schmitz

c_schmitz

2013-10-11 20:47

administrator   ~26746

Can you still reproduce this on 2.05RC2 - if yes please describe in detail how and if possible attach a small sample survey.

mlhess

mlhess

2013-10-13 17:38

reporter   ~26764

Yes, but the only way the partipant_id becomes empty rather then null, is via old updates.

I think it is safe to close.

c_schmitz

c_schmitz

2013-10-13 18:05

administrator   ~26766

Okay, thanks for the feedback.

Issue History

Date Modified Username Field Change
2013-10-01 23:57 mlhess New Issue
2013-10-02 00:36 mlhess Note Added: 26466
2013-10-02 09:39 sammousa Note Added: 26467
2013-10-02 17:37 mlhess Note Added: 26482
2013-10-11 20:47 c_schmitz Note Added: 26746
2013-10-11 20:47 c_schmitz Assigned To => c_schmitz
2013-10-11 20:47 c_schmitz Status new => feedback
2013-10-13 17:38 mlhess Note Added: 26764
2013-10-13 17:38 mlhess Status feedback => assigned
2013-10-13 18:05 c_schmitz Note Added: 26766
2013-10-13 18:05 c_schmitz Status assigned => closed
2013-10-13 18:05 c_schmitz Resolution open => unable to reproduce