_get_associated_tagnode_types always returns an int
canen - April 9, 2006 - 19:53
| Project: | Tagnode |
| Version: | 4.6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
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.

#1
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.
#2
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
#3
#4