From ce236cfc5a71e7e3f05f58b728ea35cc18db7a19 Mon Sep 17 00:00:00 2001 From: Barry O'Donovan Date: Fri, 22 Jan 2016 10:45:38 +0000 Subject: [PATCH] [BF] min != greater or equal. Doh! Prevented port 1 from being selected @listerr - this one is for you :beer: --- library/IXP/Form/Interface/Physical.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/IXP/Form/Interface/Physical.php b/library/IXP/Form/Interface/Physical.php index 198f9a0e0..8bcb74f10 100644 --- a/library/IXP/Form/Interface/Physical.php +++ b/library/IXP/Form/Interface/Physical.php @@ -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 );