Closed (fixed)
Project:
BackReference
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Sep 2009 at 03:58 UTC
Updated:
2 Sep 2010 at 15:00 UTC
I have two content types with node references and backreference. Content type A nodes have a single reference to content type B nodes and Content B nodes have multiple references to content type A nodes. Every time a node of type A is saved in creates a duplicate in node B. If the node B is edited and saved it will drop all the duplicates. Node Revisions are off. Using Drupal 6.14, Content 6x-.2.5, Backreference 6x-1.0.
Comments
Comment #1
denisanokhin commentedI have the same problem. The dublicates are disappered after cache clearing.
Comment #2
loominade commentedi have the same problem. this makes the module useless for me :/
Comment #3
loominade commentedthe error only appears if the left node is a single field and the right node is multible. to avoid this I hacked
_backreference_linkback_multiple_fieldlike that:there should be a better way, for example when a doubble reference is wanted
Comment #4
seancorrales commentedI think I resolved the issue by making both node references multiple values. Previously, I had one multi (unlimited) and the other single. The single field is only there to make the back reference work so making it a multi value wasn't a big deal for me on this case.
Comment #5
my-family commentedThe same problem. #4 helps (thanks a lot), but it is a little bit problematic for editor (the multiple value is really confusing in my case).
Otherwise the module is great and I hope it is possible to fix it.
Comment #6
jcfiala commentedMan, I cannot reproduce this.
my-family, you just posted - can you explain to me how your nodes are set up, the multiplicity of the fields, and what other fields you might have set up?
I set up an a_type with a 'field_a_to_b' nodereference field that points to b_type, that takes one value. I also added a text field in case having more than one field was part of the cause.
I set up a b_type with a 'field_b_to_a' nodereference field that points to a_type, that takes unlimited values. I also added a text field to the b_type to give it more than one field.
No matter how many a_types I create and point to the b_type, it doesn't show any duplicates in the b_type's list.
This is with drupal 6.19, cck 6.x-2.8, and Backreference 6.x-1.1. I did not have revisions turned on with either node type.
I need to be able to reproduce this to put a patch in the code.
Comment #7
my-family commentedreply to #6: APOLOGIES for my fault (blush), I had still 6.x.-1.0 version of Back Reference. It seems to be fixed in 6.x.-1.1. (after update there are no more duplicates).
I can also confirm that this release fixes the problem described in http://drupal.org/node/790282 (resp. http://drupal.org/node/682120).
Tank you very much.
Comment #8
jcfiala commentedRock!
I'm happy to hear that this one's been fixed without us noticing it. Thanks for so quickly following up and letting me know the score.