When creating a node that is a tagee and the tagnode is a flexinode the
'create new ' link always points to node/add/0. This is due to the fact that _get_associated_tagnode_types casts it's return value to an int.

I haven't tested this much but removing the cast seems to fix it here.

Comments

DeVill-1’s picture

I'm still a newbie to webmastering.

I have 2 "create new" links sitting right next to eachother in my tagnodes (even if they aren't flexinodes), and they both lead to node/add/0.

How do you "remove the cast", and what is a cast anyway?
I want to get rid of these "create new" links.

dado’s picture

sorry have been working on other modules. 4.7 version of tagnode has improved/fixed this area of the code. i removed the (int) casting and committed. i hope this fixes. please report whether it does!

for the record i expect the general problem of node-to-node associations to finally be solved in a flexible, robust manner in Drupal 4.7 using CCK's nodereference module plus an accessory module i have been working on. see here
http://drupal.org/node/58269

dado’s picture

Status: Active » Fixed
dado’s picture

Status: Fixed » Closed (fixed)