Permalink
Browse files

Bind QsID

  • Loading branch information...
Mnkras committed Dec 12, 2014
1 parent 4d5a2da commit 64a57663d19f2cfd5dfee903834bad21c96f4185
Showing with 2 additions and 1 deletion.
  1. +2 −1 web/concrete/blocks/form/controller.php
@@ -141,7 +141,8 @@ function save( $data=array() ) {
if( intval($total)==0 ){
$q = "insert into {$this->btTable} (questionSetId, surveyName, notifyMeOnSubmission, recipientEmail, thankyouMsg, displayCaptcha, redirectCID, addFilesToSet, bID) values (?, ?, ?, ?, ?, ?, ?, ?, ?)";
}else{
$q = "update {$this->btTable} set questionSetId = ?, surveyName=?, notifyMeOnSubmission=?, recipientEmail=?, thankyouMsg=?, displayCaptcha=?, redirectCID=?, addFilesToSet=? where bID = ? AND questionSetId=".$data['qsID'];
$v[] = $data['qsID'];
$q = "update {$this->btTable} set questionSetId = ?, surveyName=?, notifyMeOnSubmission=?, recipientEmail=?, thankyouMsg=?, displayCaptcha=?, redirectCID=?, addFilesToSet=? where bID = ? AND questionSetId= ?";
}
$rs = $db->query($q,$v);

0 comments on commit 64a5766

Please sign in to comment.