Webform has a new component type 'number' (an HTML5 field) and webform_validation must be updated. Potential patch will be attached.

CommentFileSizeAuthor
#1 number_field_unknown-1690108.patch2.73 KBdwieeb

Comments

dwieeb’s picture

StatusFileSize
new2.73 KB

Here is my patch.

dwieeb’s picture

Status: Patch (to be ported) » Needs review

I meant "needs review"

ressa’s picture

Thanks for the patch @dwieeb! I have tested it with this Numeric values rule:

'Specify numeric validation range'
200000|20000000

It works just fine: if I submit with for example 2500 I get the message 'field value of 2500 should be in the range 500000 to 20000000.'

escoles’s picture

FYI this defect also exists in 6.x-1.5.

escoles’s picture

I manually applied this patch against 6.x-1.5, and it seems to work fine.

Line numbers are almost identical, even, and it's a pretty straightforward patch, so it was pretty easy.

liam morland’s picture

Status: Needs review » Fixed

Fixed in 294aa70.

liam morland’s picture

Version: 7.x-1.1 » 6.x-1.5
Status: Fixed » Patch (to be ported)
liam morland’s picture

Version: 6.x-1.5 » 6.x-1.x-dev
liam morland’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Issue summary: View changes
Status: Patch (to be ported) » Closed (fixed)

Drupal 6 is no longer supported.