Skip to content

Commit

Permalink
Fixed #1313: -oth- value not saved in conditional radio list question
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/stable_plus@3523 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
Thibault Le Meur committed Oct 31, 2007
1 parent 3263090 commit e2eb5a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qanda.php
Expand Up @@ -852,7 +852,7 @@ function do_list_radio($ia)
$thisfieldname=$ia[1]."other";
if (isset($_SESSION[$thisfieldname])) { $answer .= "value='".htmlspecialchars($_SESSION[$thisfieldname],ENT_QUOTES)."' ";}
// --> START NEW FEATURE - SAVE
$answer .= "onclick=\"javascript:document.getElementById('SOTH$ia[1]').checked=true; checkconditions(document.getElementById('SOTH$ia[1]').value, document.getElementById('SOTH$ia[1]').name, document.getElementById('SOTH$ia[1]').type)\" onchange='modfield(this.name)' /></label><br /></div>\n";
$answer .= "onclick=\"javascript:document.getElementById('SOTH$ia[1]').checked=true; checkconditions(document.getElementById('SOTH$ia[1]').value, document.getElementById('SOTH$ia[1]').name, document.getElementById('SOTH$ia[1]').type); modfield(document.getElementById('SOTH$ia[1]').name)\" onchange='modfield(this.name);' /></label><br /></div>\n";
// --> END NEW FEATURE - SAVE
$inputnames[]=$thisfieldname;
if ($rowcounter==$maxrows) {$answer .= $divider; $rowcounter=0;}
Expand Down

0 comments on commit e2eb5a4

Please sign in to comment.