If #tree option is TRUE server site validation is broken in richform_regex module, because richform_regex_richform_validate function use wrong element id.

We should use $element['#value'] instead of $form_state['values'][$id].

There is same problem with the correction function.

Comments

Désiré’s picture

There is two patches:
- one just for the example module for bug reproduction
- and one for both the example module and the fixed richform_regex module

Désiré’s picture

The patches above works for the 6.x-1.x version too.

pp’s picture

Status: Active » Needs work

It's looking good, but one thing: Please correct all funtions footprint to same.

Désiré’s picture

Status: Needs work » Needs review
StatusFileSize
new4.1 KB
new4.04 KB
pp’s picture

Désiré: Can you reroll the patch and add some tests to it?

pp’s picture

Status: Needs review » Needs work