{"issue":{"created_at":"2011-11-29T14:31:42Z","state":"closed","updated_at":"2011-11-30T11:51:49Z","comments":15,"user":{"gravatar_id":"bf7d6ba25096e4aec79f1a3e5f3dc590","id":1227930,"url":"https://api.github.com/users/Mompracem","avatar_url":"https://secure.gravatar.com/avatar/bf7d6ba25096e4aec79f1a3e5f3dc590?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"Mompracem"},"body":"Hi Scribu, \r\n\r\nI see you just replied to me about my question concerning the possibility of connecting an array of custom post types to a post type\r\n\r\nI wasn't aware of the possibility but since you confirmed it is possible, I gave a try\r\n\r\nhowever, there's something not functioning as it should\r\n\r\nI registered a series of relationships and I found at least two issues\r\n\r\n1) When creating a connection like this:\r\n\r\n    p2p_register_connection_type( array( \r\n                    'id' => 'supplier-to-contractors',\r\n                    'from' => 'supplier',\r\n                    'to' => array('consultant','tourguide','transport'),\r\n                    'reciprocal' => true,\r\n                    'title' => array( 'from' => __('Connected professionals', 'my_theme_textdomain), 'to' => __('Connected suppliers', 'my_theme_textdomain') )\r\n                ));\r\n\r\nthe meta box created shows in the \"search\" field a text like \"Search Consultant\" for the meta box in the Supplier post edit page (ie that is the first custom post type in the list) - this would generate a lot of confusion in users; the \"search\" field should rather display just \"search\" \r\n\r\n2) second issue appears to be of greater concern: when I attempt to connect a post to another, something breaks... Search functionality and \"view all\" list seem fine. But if I add a post from the custom post types selected as in the code above, it adds the a post \"Consultant\", regardless of what I chose (there's no such post named \"Consultant\", that's a custom post type label in my setup). If I attempt to save the post anyway, connection information (which is wrong in the first place) is not saved either.\r\n\r\n\r\nProblems 1 & 2 appear also on other custom post types, regardless of the custom post types connected or attempted post connections.\r\n","assignee":null,"id":2384955,"number":70,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[{"name":"bug","color":"ff7f7f","url":"https://api.github.com/repos/scribu/wp-posts-to-posts/labels/bug"}],"title":"Connections don't work when multiple connections are registered","html_url":"https://github.com/scribu/wp-posts-to-posts/issues/70","closed_at":"2011-11-30T11:51:49Z","url":"https://api.github.com/repos/scribu/wp-posts-to-posts/issues/70","milestone":null},"action":"closed"}