When trying to clone and webform content type I get the following errors:
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '167-1' for key 'PRIMARY': INSERT INTO {webform_component} (nid, cid, pid, form_key, name, type, value, extra, mandatory, weight) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9); Array ( [:db_insert_placeholder_0] => 167 [:db_insert_placeholder_1] => 1 [:db_insert_placeholder_2] => 0 [:db_insert_placeholder_3] => header [:db_insert_placeholder_4] => Header [:db_insert_placeholder_5] => markup [:db_insert_placeholder_6] =>

 

 

[:db_insert_placeholder_7] => a:5:{s:20:"conditional_operator";s:1:"=";s:6:"format";s:9:"full_html";s:7:"private";i:0;s:21:"conditional_component";s:0:"";s:18:"conditional_values";s:0:"";} [:db_insert_placeholder_8] => 0 [:db_insert_placeholder_9] => 0 ) in webform_component_insert() (line 781 of \sites\all\modules\webform\includes\webform.components.inc).

Any ideas?
Thanks
Sharon

Comments

pwolanin’s picture

Status: Active » Postponed (maintainer needs more info)

please provide detailed steps to reproduce

alexharries’s picture

I'm having what may be a related problem; if I set node clone to pre-populate the node form when clicking the "Clone" link for a webform, the new node will not save, no errors are logged and I'm simply returned to a blank node/add form.

If I change the settings so the node is cloned and I am then presented with the node edit form, the webform clones correctly (as far as I can tell), including all form elements.

Très weird...

broon’s picture

Alex, there is some new security restraint in place, so /node/1/clone won't work. The link now looks something like /node/1/clone/CJ_HP521_eNEFPE-yiGkuCgAbZzz9cT32S1-sVYDFAM.

pwolanin’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Closing in the absence of detailed STR