Closed (fixed)
Project:
Webform Validation
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
18 Apr 2010 at 12:30 UTC
Updated:
15 Jun 2010 at 15:00 UTC
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
Comment #1
svendecabooterThat'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.
Comment #2
svendecabooterComment #3
svendecabooterSupport for Webform 3.x multiple content types has been added in HEAD.