Creating multiple relations with this field is broken (or not even supported?).

Steps to reproduce:

  • Create a random relation type.
  • Create a content type, add a reltion_select field and choose the relation type.
  • Select "unlimited values" (or any amount bigger than two) for this field!
  • Try to create a node: Add the first relation. This works fine.
  • Try to create a second relation: "Add another item": a new relation_select box appears.
  • Click on search: Page reload and fatal error

The view window does not open in a Layover.
Instead the page is reloaded, and I get "Call to undefined function relation_select_views_exposed_form_submit".

Is this a bug or are multiple values not supported?
If not, I would consider this a crucial feature request.

Comments

steveoliver’s picture

Title: Support for Multiple Values » Call to undefined function relation_select_views_exposed_form_submit
Assigned: Unassigned » steveoliver
Priority: Normal » Major
Status: Active » Needs work

Duke, I notice the error when a RS field is set to unlimited, after hitting "Add another". Patch coming up...

steveoliver’s picture

Status: Needs work » Needs review
Issue tags: +hack

ok, I added an empty relation_select_views_exposed_form_submit function to b4b5c40. Please get the latest from 7.x-1.x and see if it fixes the issue for you. It seems to work for me. Without this submit defined in relation_select_element_process, the ajax Search functionality doesn't work.

steveoliver’s picture

Status: Needs review » Needs work

This seemed to be working yesterday, but I'm pretty sure it's not working.

manicato’s picture

I have still the same problem with the latest DEV, but there is no fatal error.

When I edit a users relation, there are 2 Relation Select boxes. I'm able to add a third box, but when I click the search button on this box, the main edit user form is submitted and not the Relation Select form.

manicato’s picture

I think the problem I'm facing is not related to this subjet, so I created a new issue:
http://drupal.org/node/1860892

jibize’s picture

Could be related to http://drupal.org/node/1868056