first of all.. great module !
the problem is, i click on the "search and reference multiple items" graphical button next to the "add another" button.
then im choosing one or more items and click on the "save" button.
the window close, the ahah typical loading animation starts. after maybe 1 or 2 seconds i get an error message poped up with the following reason:

An error occurred.
<br />
<b>Fatal error</b>: Call to undefined function content_field_form() in <b>C:\Users\me\Sites\drupal\my-site\sites\all\modules\noderelationships\</b> on line <b>725</b><br />

i'ved then opend and found the following at line 725: $form_element = content_field_form($form, $form_state, $field);

I don't know how to fix that and even don'n know if the error occurres because of an bug in this module.
It works very well if im just reference one value via the "search and reference.." to the right of every autocomplete field.

thx in advance


markus_petrux’s picture

Status: Active » Needs review

hmm... good one. We need to make sure CCK code related to node form is loaded.

Could you please try the following mini-patch to

 function noderelationships_noderef_ahah_search($type_name, $field_name, $item_count) {
+  // Include node form code from CCK.
+  module_load_include('inc', 'content', 'includes/content.node_form');
   $type = content_types($type_name);
markus_petrux’s picture

Status: Needs review » Fixed

Well, I just committed this to CVS (patch). It should be available in the -dev package as soon as new snapshot is built (I think it happens twice a day).

Thanks for reporting this issue.

woot’s picture

Assigned: Unassigned » woot

sorry for the delay.. i tought i'ved subscribed to this issue.
i'ved tried the dev. snapshot from 1th august and it works fine now at my local enviroment.

thank you ;D

Status: Fixed » Closed (fixed)

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