wkempees
Posts: 1679
|
Posted: 03/07/2007, 2:16 PM |
|
PhP version only:
There is a bug in the Question->BeforeShow
This code
If ($result) {
$Component->question_type->SetValue( $db->f("question_type") );
$Component->sort_order->SetValue( $db->f("sort_order") );
$Component->question_text->SetValue( $db->f("question_text") );
$Component->respondent_id->SetValue($db->f("respondent_id") );
//$Component->question_id->SetValue() = populated automatically by the corresponding URL value
should be ammended to:
(change is in the last but one line (repondent_id
If ($result) {
$Component->question_type->SetValue( $db->f("question_type") );
$Component->sort_order->SetValue( $db->f("sort_order") );
$Component->question_text->SetValue( $db->f("question_text") );
$Component->respondent_id->SetValue( CCGetSession("respondent_id") );
//$Component->question_id->SetValue() = populated automatically by the corresponding URL value
The original code was populating the hidden respondent_id field from the question table.
As there is no such field in that table it was defaulted to NULL.
herefore in the responses table the respondent_id would not be filled properly.
Marketplace version will be uploaded as version 1.1
Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|