Project:Dependent
Version:5.x-1.3-beta
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

I am seeing the following message in watchdog...

Invalid argument supplied for foreach() in sites/all/modules/dependent/dependent.module on line 262.

This occurs on the add page - http://www.example.com/main/node/add/reviews - where my CCK node type is reviews.

Using Drupal 5.7 with latest version of CCK.

Thanks,

Eric

Comments

#1

Thank you for your comment.

Can you please export the cck type so I will check it myself?

Ofir.

#2

HI,

Here is the export of the CCK in a text file.

I get the message when I go to Home » Administer » Content management » Content types » Reviews

Thanks,
Eric

AttachmentSize
review_CCK.txt 7.98 KB

#3

Hi,
Sorry for not being around for a while. I successfully imported your content type. However, I did not manage to reproduce your watchdog warning. Can you please specify what are the dependent fields?

#4

Hi,

Review Type / field_review_type is the the field is the 'parent' field with choices Product, Event, Online Resource, & Other . Any field with event or product in the field name is a dependent field of the obvious parent - field_event_type goes with Event, field_product_type goes with Product, etc....

Note - I did not finish setting up the content type so...

Also I have had issues using the CCK link module as well.... It always appeared on the form not matter which parent was chosen and it caused another dependent field to not appear.

Eric

#5

OK,

I have uploaded a new release with fixes for your issues. Now you can also choose a selection field as the parent field (I saw you have several of this type).

Best regards,
Ofir.

nobody click here