Currently webform_features have a feature export functionality for webform and webform conditionals on an "Insert" or new webforms situations.
But webform_features will crash on feature export "updates" situation. It's because webform_features does not have a machine_name or uuid functionality for webform conditionals.
drush fr ambassador_inquiry
Do you really want to revert ambassador_inquiry.webform? (y/n): y
WD node: PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '598-2' for key 'PRIMARY': INSERT INTO {webform_conditional} [error]
(nid, rgid, andor, action, target_type, target, 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); Array
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | webform_features-conditionals-2307675-3.patch | 1.69 KB | jasonawant |
Comments
Comment #1
duaelfrYou are totally right. This module does not support Webform Conditionals at the moment because it is not part of the webform 3.x core.
It would be cool to have it in Webform Features but I cannot plan it for now as I have to focus on paid work.
Feel free to provide a patch.
Comment #2
jim.m commentedI've run into this issue and fixed it. Attaching the patch.
EDIT: Oops, looks like I used 3.0-beta3 with webform 4.x by mistake. But, everything in webform_features-3.0beta3 worked flawlessly on webform 4.x except this conditionals bug. This will fix it so that current webform_features3.0-beta3 branch works with webform 4.x.
Comment #3
jasonawantHi,
Here's a patch against the 4.x version. Also, I'd be happy to help maintain this module.
Jason.
Comment #4
miteshmapComment #6
miteshmap