Thanks so much for the quick response, and for a fantastic module. We do need a little help though with editing responses after initial creation. In LimeSurvey, there is a setting that allows users to return and edit their answers. Every time we try to return to the response node to edit an unfinished survey, we click save and it responds "You don't have access to this page." This occurs when we use an iframe. The save feature does work when we use "automatic and immediate redirection" instead of an iframe. Is there something we can do to make the iframe work?
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | Editing_response_after_initial_creation-1717844-3.patch | 6.39 KB | thedut |
Comments
Comment #1
thedut commentedHi swamiman,
This seems to be a bug. I am in vacation right now, i will explore this issue within 2 weeks.
Anyway, I am able to edit a completed answer using iframe... This issue may occure on specific (unkown) conditions.
Comment #2
thedut commentedYou could explore yourself this issue during the meantime : the function
ls_answ_fill_survey_access()may be involved [EDIT : see next post]. It is declared into the ls_answ/ls_answ.module file (line 305).This function is quite complex, be carefull when editing it.
Comment #3
thedut commentedHi,
I had made a mistake, the involved function was not ls_answ_fill_survey_access() but ls_answ_back_from_ls_access().
Anyway, this issue was not cause by my module but by a bug from the LimeSurvey software : I have reported it on the LimeSurvey bug tracker :
06497: Wellcome screen shown when editing completed answer
However, I provide a patch in order to fix the access denied, even with the LimeSurvey bug.
As a bonus included into this patch, the url port is handle now : you can set the limesurvey software to an url like http://www.example.com:8087/limesurvey.
I won't create a new limesurve_sync release file for that issue, because I guess the LimeSurvey team will solve it soon and and I want to add more new features for the next realease.
Please test the patch and report !
Comment #4
thedut commentedComment #5
thedut commentedNote : The LimeSurvey team has not solve this issue yet.
Here is a better description of this issue :
When the user has finished to fill a survey, it is redirected to the Drupal site and meet an denied access page.
The answers are correctly recorded into the LimeSurvey database, it is a minor issue.
This issue should only occur for surveys matching all those settings together :
This issue is due to a minor bug from the limeSurvey software, people are working on it but it is not solved yet.
Anyway, the provided patch should fix the access denied issue, even if the LimeSurvey bug is not fixed.
Comment #6
thedut commentedNote : I have just upgraded the demosite with this patch, fixing the access denied occuring at the end of the quick survey.
Comment #7
thedut commentedAt last, this LimeSurvey issue has been fixed by the LimeSurvey Team on the LimeSurvey v2.00 version, but not in the v1.92 version.
I will fix the code to handle specifically the buggy 1.92 version Into the next LimeSurvey Sync release.
Comment #8
thedut commentedComment #9
thedut commentedFixed into the LimeSurvey Sync 7.x-1.2 and 6.x-1.2 releases.