I'm having issues with the create and reference. part of node relationships. everything else seems to be working beautifully.
my issue witht eh create and reference is that it creates the new node, but does not do anything else, it doesn't close the modal box, doesn't link the new node to the field. right now the only thing i can do is create the node through the create and reference button, then close that modal by clicking on the X, and then click on the search and reference button to reference the new node.

this behavior is on a multi field.

drupal version 6.15
php version 5.2.8
browsers
safari or firefox

Comments

Manuel Garcia’s picture

Just confirming this is an issue on version 6.x-1.5 of the module, runing on cck 6.x-2.6. In our case, the field is a single value field.

We are early in the development, and I would realy like to include this fucctionality, to make thing simpler to the writers. I am willing to helpout testing patches!

flightdrupal’s picture

I am having the same problem in the same drupal/modules environment. need help urgently, any suggestions?

jleonard’s picture

Same issue, with the latest and greatest drupal, cck, and noderelationships. In my case however, my php is 5.1.6. Is there a minimum version required?

kehan’s picture

same problem here with latest versions of drupal, cck (2) and noderelationships. Brilliant module by the way. Also additional browser Chrome on OSX

burki’s picture

Component: Node relationships extensions » CCK integration

I have the same issue as the others above, but some more information about it.

In my tests, the problem occurs only if I reference a content type that contains a field with setting "unlimited" (cardinality of field).

For example I have a content type with a textfield that has cardinality 2 => no problems, the box closes, the node is referenced.
If I just change the cardinality of this field to "unlimited" => the node is saved, but the box stays open and the whole drupal page appears inside the modal frame. The node is not referenced in the parent form.

The reason for the problem is (according to my debug-session) that the hook_form_alter is not called after submitting the form in the modal frame. Therefore the listener of node relationships is not attached to the save-event and so it can't close the box and pass the reference-information.

I could imagine that the AHAH parts in the form (that appears automatically to add more items if cardinality is unlimited) are provocating this behaviour. Unfortunately I don't see a solution for it.

Any suggestions?

Thanks and cheers
Stefan

PS: As mentioned by others: great module!

locomo’s picture

subscribe

burki’s picture

Status: Active » Fixed

Thanks to the help of my colleague, I found out that latest Dev-Version of the module fixes this behaviour.

This Issue is in fact a duplicate of already closed Issue "Modal frame not closing automatically" (http://drupal.org/node/687746)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Zach Harkey’s picture

Confirmed this is fixed in dev. IMO this fix alone warrants a point release.

bramley’s picture

Has this been added to the latest release? thanks

fourmi4x’s picture

Status: Closed (fixed) » Active

I'm reopening this issue because I have updated to the latest dev version and I still have this bug.

I have noticed that the bug disappears on nodes which don't have many fields.
But I have a content type with about 15 fields for which, after submission of the nodereference creation, the modal frame display the newly created node and does not close automatically (the java loading icon continues to turn in the middle).

Has the patch of April from this thread also been commited to dev ? (@Zach Harkey: I see your message dates back from March, that's why I ask).

fourmi4x’s picture

Version: 6.x-1.5 » 6.x-1.x-dev
Problue Solutions’s picture

I'm having this problem in the latest dev version also, referenced node has a single text field set to maximum value of one, so in my case it's nothing to do with unlimited field values and the patches in the other thread have obviously not fixed the issue.

I tried reverting to version 6.1.5 and applied the patch here: http://drupal.org/node/687746

Still having the issue.

DarrellDuane’s picture

I also am having this problem, but I don't even get beyond the modal box saying "Loading..." with the wheel spinning away in the center. I'm using the latest Dev version but I also had this problem with one of the recently released version.

DarrellDuane’s picture

OK, I found the problem, I didn't have JQuery_update enabled, and I didn't have the dev version installed, which it seems I need.
I'm not sure why the dependency for JQuery_UI doesn't require JQuery_update, but it might be good to have jquery_update be
a dependency of Node Relationships module.