• Resolved faction23

    (@faction23)


    Hey there. Thank you for this awesome plugin!

    I have a small issue which has persisted for me through to current version. I have a field registered in p2p_register_connection_type that looks like this:

    'fields' => array( 'oz' => array(
     'title'  => 'Oz',
     'type'   => 'select',
     'values' => array(
        '1/8',
        '1/6',
        '1/4',
        '1/3',
        '1/2',
        '2/3',
        '3/4',
        '1',
        '1 1/3',
        '1 1/2',
        '1 3/4',
    etc...

    When initially creating a post, making some relationships and selecting from the “Oz” select on each “ingredient”, any fractions that are below “1” save well initially, but after refresh of the post editor the selects that are fractions below 1 display as being “1”. So if the post is updated they become the new value. Any fraction above 1 is fine.

    I determined that modifying

    'selected' => ( $value == $args['selected'] ),

    to

    'selected' => ( $value === $args['selected'] ),

    on line 716 of posts-to-posts/scb/Forms.php made this issue go away for me, and have been doing so through each upgrade as the function moves around. Any thoughts on this situation?

    Thanks so much!

    http://wordpress.org/extend/plugins/posts-to-posts/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Issue with selects on the post editor’ is closed to new replies.