Index: trunk/extensions/RecordAdmin/RecordAdmin_body.php |
— | — | @@ -416,7 +416,7 @@ |
417 | 417 | case 'list': |
418 | 418 | $html = preg_replace_callback("|\{\{.+\}\}|s", array($this, 'parsePart'), $html); # parse any braces |
419 | 419 | $html = preg_replace( "|(<option[^<>]*) selected|", "$1", $html ); # remove the currently selected option |
420 | | - if ( $v ) { print "\"$v\""; |
| 420 | + if ( $v ) { |
421 | 421 | $html = preg_match( "|<option[^>]+value\s*=|s", $html ) |
422 | 422 | ? preg_replace( "|(<option)([^>]+value\s*=\s*[\"']{$v}['\"])|s", "$1 selected$2", $html ) |
423 | 423 | : preg_replace( "|(<option[^>]*)(?=>$v</option>)|s", "$1 selected", $html ); |