Hi, using latest drupal 4.7 and your taxonomy switch module in latest version too. I was moving some terms from one vocabulary to another with no problems. But then I tried to move term, which had subterms. What has happened? This term has been moved, but it's subterms not! Actualy they disappeared and I cannot find them anymore. Nodes assigned to these terms disappeared too. I was able to find them via drupal search option, but I cannot search for ALL of them to manualy change their term assignment!

Example:

Vocabulary A:
- Term 1
- Term 2
- Subterm 1
- Subterm 2
- Subterm 3
- Term 3

Vocabulary B:
- Term 1

When I try to switch Term 2 from Vocabulary A to Vocabulary B, this Term 2 si switched, but not with it's subterms! I expected Subterm 1,2,3 will remain in Vocabulary A, but they are gone! I cannot find these terms to move them too.

Can you tell me more about it? Your module only warned that Relations are lost during switching, but not a word about "cannot switch term, if it has subterms"

lakyljuk

Comments

joel_guesclin’s picture

I will test this - in principle the sub-terms and nodes should move with the term

joel_guesclin’s picture

Can you also give more characteristics about the vocabularies you were moving to and from? For example, were either vocabulary of the "free tagging" type? What hierarchy settings?

lakyljuk’s picture

Hi.

Still reffering to above example - both of vocabularies A and B were with the same settings:

Types:
page, poll, story

Related terms:
disabled

Hierarchy:
Multiple

Multiple select:
disabled

Required:
disabled

Funny thing - after using a drupal search function for a while, I was able to find "lost" stories which had assigned this "lost" terms. Story was showing it has assigned for example Subterm1, but when this term was clicked, it reported page not found error. I examined database and these "lost" subterms were still there, I found them according to tid. But in drupal environment, they are not appearing anywhere - neither in category section, nor searchable via drupal search. So I called them "lost". I finally found solution, I searched all lost nodes by some keywords and assigned them new subterm I created, then I deleted duplicate old lost subterms in database directly, but I was terrible job!

joel_guesclin’s picture

Assigned: Unassigned » joel_guesclin

I'm really sorry about this - there was actually a much simply solution which I have discovered after some testing. You just move the term that you moved back where it came from! Since none of the sub-terms were touched, it just "slots into place" so to speak, and everything is back to normal.
I never noticed this before, because I have not yet moved anything with subterms (my bad - I thought I had tested it, but obviously not). I plan to post shortly a new version of the module which should handle subterms correctly, and would be glad if you can test it. I will also include a small module to review the whole taxonomy and report any errors that have been created.

lakyljuk’s picture

Hello. Hmmm, very nice solution :) It would never come to my mind to move this term back :) I am glad I helped to discover this bug. I would be very pleased to help you with testing, since I like your module very much, it saved me much time and I did what would be impossible to do otherwise.

Thanks again

lakyljuk

pomliane’s picture

Status: Active » Closed (won't fix)

This version of Taxonomy Switch is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.

This issue has been automagically closed by a script.