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

Comments

duaelfr’s picture

You 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.

jim.m’s picture

Status: Active » Needs review
StatusFileSize
new2.59 KB

I'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.

jasonawant’s picture

Version: 7.x-3.x-dev » 7.x-4.x-dev
Category: Feature request » Bug report
StatusFileSize
new1.69 KB

Hi,

Here's a patch against the 4.x version. Also, I'd be happy to help maintain this module.

Jason.

miteshmap’s picture

Status: Needs review » Reviewed & tested by the community

  • miteshmap committed c8b786f on 7.x-4.x
    Issue #2307675 by jasonawant, Jim.M: Webform Conditionals
    
miteshmap’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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