It is possible to add webform components to pages and that in itself works fine. It is then possible to also add validation rules, which also work fine. However, existing rules are not listed even though they continue to be processed.

The issue is at line 23 of webform_validation.admin.inc

function webform_validation_get_webform_rules($node) {
if ($node->type == "webform") {
$webform_nid = $node->nid;
$rules = webform_validation_get_node_rules($node->nid);
}
return $rules;
}

I changed this to:

if ($node->type == "webform" || $node->type == "page") {

and that works fine.

Comments

svendecabooter’s picture

Assigned: Unassigned » svendecabooter

That's correct...
Since webforms in 6.x-3.x can be attached to all node types, that check should probably just be removed... I'm looking into it.

svendecabooter’s picture

Status: Active » Needs review
svendecabooter’s picture

Status: Needs review » Fixed

Support for Webform 3.x multiple content types has been added in HEAD.

Status: Fixed » Closed (fixed)

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