Download & Extend

Adding a node to children term of NAT causes problem

Project:Node Auto Term [NAT]
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Zen
Status:closed (fixed)

Issue Summary

I created a vocab, linked it to a node type, and started creating nodes.

If I associate a node with the term that matches it, that term gets deleted from the taxonomy list (in the admin page, or shown in the node edit form). However, it still shows at the foot of the node that has the term. Clicking on the link makes the browser go into a 'loading....' state for a long time before giving this PHP error:

Fatal error: Maximum execution time of 60 seconds exceeded in D:\xampp\htdocs\drupal-cvs-nat\includes\database.mysql.inc on line 153

Comments

#1

#2

I am experiencing this issue as well.

#3

Subscribing

#4

Version:master» 6.x-1.x-dev
Status:active» fixed

This should no longer be possible.

-K

#5

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

#6

Status:closed (fixed)» active

Sorry to reopen, but I had this issue in the beta, upgraded to 6.x-1.x-dev, and it still seems to be happening.

I'm using some form validation in a custom module to stop editors classifying nat nodes with their nat categories.

#7

Just hit this bug - when saving a node tagged with it's own term, the term gets deleted and the script hangs.

#8

I had the same problem today. The way I "forced" the term back was to do a search for it, then it shows up in the term page in the taxonomy manager. I assigned a parent to it, and it showed under that parent. Then I moved it out of the new parent to where it belongs. HOWEVER, If you do not remove the association in the list of taxonomy term options from within the node it re-generates what seemed to be an infinite number of itself as children of itself. Unlinking the term in the node removed the multiple instances of the term. Its sor of like when you look into two mirrors facing each other - you keep getting reflections of reflections...

Still having problems with the node being associated with the term it created....

#9

just set the term assigned to the node to none.

the term reappears.

#10

Title:adding a node's own term to itself deletes the term» Adding a node to children term of NAT causes problem
Priority:normal» critical

#11

All children of NAT term has to be removed from Taxonomy select box, so user will not be able to choose wrong term.

#12

Assigned to:Anonymous» anantagati
Status:active» needs review

Attached is a patch for for latest 6.x-1.x-dev.

It removes NAT term and its children from Taxonomy select on node edit form.

AttachmentSize
nat-194804-bug-nat-node-possible-to-assign-for-child-terms.patch 2.12 KB

#13

sub

#14

Status:needs review» fixed

Commited.

#15

Great job anantagati!
I had experienced this before too. Your fix seems to work great! (tested with NAT 6.x-1.2).
I was planning on testing this out earlier and (hopefully) set to RTBC, but I was too late. Oh well, it works well.

And thanks a bunch for taking ownership of this module. NAT really is a nice little gem of a module!
It is really good to see it getting taken care of.

Thanks again!

#16

Thank you for encouragement arlinsandbulte.

#17

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

#18

Priority:critical» normal
Assigned to:anantagati» Zen
Status:closed (fixed)» active

#19

Status:active» fixed

#20

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here