Welcome, Guest
Username: Password: Remember me

TOPIC: Survey ID not set correctly after row insert in servey_NNN table

Survey ID not set correctly after row insert in servey_NNN table 2 years 6 months ago #76145

  • sergey
  • sergey's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 2
  • Karma: 0
Looked like in the latest code (1.92 build 20120303) the following line is wrong:

$srid = $connect->Insert_ID($this->surveyOptions,"sid");

It should be "id" not "sid" as the last parameter.

The line (in "dev" branch) is 3279: github.com/LimeSurvey/LimeSurvey/blob/de...ionManager.php#L3279.
The administrator has disabled public write access.

Re: Survey ID not set correctly after row insert in servey_NNN table 2 years 6 months ago #76148

  • Steve
  • Steve's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 494
  • Thank you received: 46
  • Karma: 17
Hello,

Please open a ticket at the bugtracker to report this issue and post the link to the bugtracker so we can follow the progress.

Thanks!
Mit freundlichen Grüßen/Best regards,

Stefan Gohlke
LimeSurvey Team
The administrator has disabled public write access.

Re: Survey ID not set correctly after row insert in servey_NNN table 2 years 6 months ago #76302

  • sergey
  • sergey's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 2
  • Karma: 0
The administrator has disabled public write access.

Re: Survey ID not set correctly after row insert in servey_NNN table 2 years 6 months ago #76304

  • TMSWhite
  • TMSWhite's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 759
  • Thank you received: 82
  • Karma: 36
That looks like a Postgres-only issue (which has been an issue for years).

Regardless, it has been fixed.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.097 seconds
Donation Image