Skip to content

Commit

Permalink
Fixed issue #05897: Survey ID not set correctly after row insert in s…
Browse files Browse the repository at this point in the history
…ervey_NNN table

Dev this could only affect Postgres installations, as that argument is ignored by all other database types.
  • Loading branch information
TMSWhite committed Mar 11, 2012
1 parent ae1ade3 commit d7cffd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/expressions/LimeExpressionManager.php
Expand Up @@ -3290,7 +3290,7 @@ private function _UpdateValuesInDatabase($updatedValues, $finished=false)
//One of the strengths of ADOdb's AutoExecute() is that only valid field names for $table are updated
if ($connect->AutoExecute($this->surveyOptions['tablename'], $sdata,'INSERT')) // Checked
{
$srid = $connect->Insert_ID($this->surveyOptions['tablename'],"sid");
$srid = $connect->Insert_ID($this->surveyOptions['tablename'],"id");
$_SESSION['srid'] = $srid;
}
else
Expand Down

2 comments on commit d7cffd0

@TMSWhite
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to be ported to Yii?

@TMSWhite
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to port this to Yii, since it handles this differently.

Please sign in to comment.