Skip to content

Commit

Permalink
[BF] min != greater or equal. Doh! Prevented port 1 from being selected
Browse files Browse the repository at this point in the history
@listerr - this one is for you 🍺
  • Loading branch information
barryo committed Jan 22, 2016
1 parent 0e061c0 commit ce236cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/IXP/Form/Interface/Physical.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function init()
->setRegisterInArrayValidator( false )
->setLabel( 'Port' )
->setAttrib( 'class', 'chzn-select span8' )
->addValidator( 'greaterThan', false, array( 'min' => 1 ) )
->addValidator( 'greaterThan', false, array( 'min' => 0 ) )
->setErrorMessages( array( 'Please select a switch port' ) );
$this->addElement( $switchPorts );

Expand Down

0 comments on commit ce236cf

Please sign in to comment.