I'm using CCK 6.x.2.2 and Drupal 6.10. If I have this module installed and allow for unlimited nodereferences, the "add another item" field doesn't display a new field on the browser screen when I click it. If I just click on the button and save, the content is created with only two node references. If I tab forward from the last visible input field, and then save, I will get an error message about the empty field, and the field (or fields if I clicked more than once) will be visible, and I can add to them and add more fields, but the "popups: add & reference" links have disappeared.

Any help would be appreciated! If you think this is a CCK issue, and I should post over there, let me know.

Thanks

Comments

starbow’s picture

Assigned: Unassigned » starbow

Drat, this was working with cck 2.1. I will take a look.

starbow’s picture

Assigned: starbow » Unassigned

Oh, right. You will need to use the 2.x branch of this and Popups API for it to work.

ln282’s picture

Thanks for the quick reply!

ln282’s picture

Version: 6.x-1.0 » 6.x-2.0-alpha1

I updated to the 2.0 branch of Popups and the Popups API, and I'm still having the same problem.

sirkitree’s picture

Same here.

But also, in the case of the multiple node reference fields, I think that the link needs to be added to each instance of the field in order for the correct field to be filled out after a node is created through that popup-link's popup.

In order for this to happen, you'll have to loop through the $form[$field_name]s

I can open a separate issue for that if you want (as I'll be creating a patch for this), but I do think it's somewhat related.

sirkitree’s picture

Category: support » bug

The patch I supplied for #388406: multiple values nodereference field seems to fix this issue.

However, the links are not returned with the AHAH response. Investigating further....

sirkitree’s picture

After talking with quicksketch a bit in IRC, it seems like this is more of a problem with the way CCK has written it's AHAH callback. Looking into how he has it implemented within filefield_js() and will supply a patch to them and give an update here.

russbollesjr’s picture

Priority: Normal » Critical

subscribed

milos.kroulik’s picture

subscribed

sirkitree’s picture

Priority: Critical » Normal
Status: Active » Closed (duplicate)

Working on this in the issue linked in #6. Marking this as duplicate.

doublejosh’s picture

Here in the foxhole on this issue as well.