The views_element_validate_integer() function validates the element and display an error message '%name must be a positive integer.' but it doesn't validate that the value is positive.

CommentFileSizeAuthor
#1 2010498-1.patch599 byteskalman.hosszu
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kalman.hosszu’s picture

Status: Active » Needs review
FileSize
599 bytes

The patch is attached.

dawehner’s picture

Good catch! Committed and pushed to 7.x-3.x

dawehner’s picture

Status: Needs review » Fixed

That's already fixed properly in Drupal 8 using #min and #type number.

Status: Fixed » Closed (fixed)

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