Skip to content

Commit

Permalink
fixed bug #10154: Custom field enum values are
Browse files Browse the repository at this point in the history
  getting the first and last characters truncated
  when displayed.
   - note that leading and trailing bars may be present
      in the database for some entries
  • Loading branch information
thraxisp committed Feb 24, 2009
1 parent 21ca83b commit d43e5de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/cfdefs/cfdef_standard.php
Expand Up @@ -211,7 +211,7 @@ function cfdef_prepare_date_default( $p_value ) {
#string_custom_field_value
function cfdef_prepare_list_value($p_value) {
// strip start and end markers before converting markers to commas
return str_replace( '|', ', ', substr( $p_value, 1, -1 ) );
return str_replace( '|', ', ', substr( str_replace( '||', '|', '|' . $p_value . '|' ), 1, -1 ) );
}

function cfdef_prepare_email_value($p_value) {
Expand Down

0 comments on commit d43e5de

Please sign in to comment.