Steps to reproduce the bug:
- Add an HS field to a content type with permission to create new terms
- Add content of this content type
- Using HS
- traverse existing taxonomy
- select at any level <create new term>
- provide new term
- Do one of the following:
-
- Action: Press Create on HS field and then Save for the new content
- Result: the content (node) is created twice, the new taxonomy term once
-
- Action: DO NOT press Create on HS field, just Save the new content
- Result: the content (node) is created once, the new taxonomy term is not created
-
- Action: Press Create on HS field but DO NOT Save the new content
- Result: the content (node) is created once, the new taxonomy term is created once
-
So, the desired result is achieved following option 3, but the intuitive action is that of option 1. Either the HS submission should NOT submit the whole new content form, or Saving the content form should behave like updating an already existing node.
Comments
Comment #1
Vidus commentedI'm having this issue as well. I've found that repeatedly opening and selecting a term on a list will also keep making content. I believe I got over 3 pieces of content created within just a few seconds clicking on the menu.
Comment #2
yusufsarac commentedI'm having the same problem. Any solution for this ?
Comment #3
latulipeblanche commentedI've got the same problem.
I found out that under 'relations' as 'default' there is already a 'root' parent term.
I added the parent I want to use, I remove the 'root', and even that there is an error message "Parents field is required." I save and there is just one entry added.
It would be better not ta add the default parent I think.
Comment #4
fasdalf@fasdalf.ru commentedUp. Problem is actual for me too.
Comment #5
challenge commentedI get this too and it's pretty annoying if you plan to insert new terms through HS widget.
it creates a duplicated node called "[node:field_nameofHSfield]"
Comment #6
damiandab commentedsame problem :(
Comment #7
Gamesbro commentedTemporary Solution: Full credit here http://drupal.org/node/1389740
This solves the content double create and autosave bug. The side effect and this could be corrected (HELP) is that the first letter of the taxonomy term will only stay capitalized. Any subsequent capital default to lower case.
Comment #8
nchase commentedlatest dev still contains this bug. It's pretty annoying as it results in a double creation. Anyone knows what causing it?
Comment #9
BigBrother2010 commentedSame problem. Anyone found solution ?
Comment #10
ioskevich commentedThis module works as a temp solution: http://drupal.org/node/1389740
Comment #11
ioskevich commentedWell, in case it might help anyone - to get rid of text formatting for new terms, comment out line 149 in solve_hs_issues.module from http://drupal.org/node/1389740
Not sure why, but capitalization is hardcoded there:
$term_input = ucfirst(strtolower($term_input));should become//$term_input = ucfirst(strtolower($term_input));Comment #12
stefan.r commentedis this still an issue in the latest version of HS?
Comment #13
stefan.r commentedThe instructions in the opening post do not lead to the described result, closing issue.