Hello,
I have enabled the auto sku generate for a certain product type and am using the node title token. After I create a product, if I delete it and then recreate a new product with the same title, I get an error message saying this is a duplicate entry in the database. Shouldn't the auto generated sku delete when the product is deleted?
Am I missing a something when I delete a product?
Thank you,
Kim
Comments
Comment #1
fossle commentedI looked at the database and if a product is deleted and then recreated, the auto sku keeps the NID of the deleted node, not the new one. I also tried using the title-raw but this didn't seem to make a difference.
Comment #2
willvincent commentedYes, I believe this is a bug.. I think it's a bit more broad than this though. I think the problem is that non of the data generated by the power tools module is actually removed from the database when a product is deleted.
I'll look into it as soon as I can.
Comment #3
willvincent commentedComment #4
willvincent commentedComment #5
willvincent commentedThis is most likely due to the previous improper usage of the non-existent db_next_id() function call.. that has been changed in the latest release 6.x-1.12.
Comment #6
sean porter commentedI'm still getting this issue using 6x-1.2
Cheers,
Sean