Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: How are the answers stored after posting a form for a question group?

How are the answers stored after posting a form for a question group? 2 years 2 months ago #110401

  • ralovera
  • ralovera's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
I would like to know where in the code are the answers being saved into the database.
The administrator has disabled public write access.

How are the answers stored after posting a form for a question group? 2 years 2 months ago #110416

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9305
  • Thank you received: 1330
  • Karma: 386
Hi,

Prefix_answers
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.

How are the answers stored after posting a form for a question group? 2 years 2 months ago #110420

  • ralovera
  • ralovera's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
Hi,

Do you mean {table prefix}_answers? I meant to ask what function is called to save the answers and what file and line is it at?

I checked out the SurveyController and the index action to see what it does with the information about the submitted form but I can't see what part in the code actually saves the answers.
Last Edit: 2 years 2 months ago by ralovera.
The administrator has disabled public write access.

How are the answers stored after posting a form for a question group? 2 years 2 months ago #110431

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9305
  • Thank you received: 1330
  • Karma: 386
It's in em_manager_helper.php :
private function _UpdateValuesInDatabase
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.298 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form