validate weight field of Peering Servers

This is a tinyint in the db so the range is from -128 to +127 but we only
allow positive numbers
Mantis: 3493
agranig/1_0_subfix
Gerhard Jungwirth 12 years ago committed by Andrew Pogrebennyk
parent 02296a9eb8
commit 99bcb29a57

@ -48,7 +48,7 @@ has_field 'transport' => (
has_field 'weight' => (
type => '+NGCP::Panel::Field::PosInteger',
required => 1,
max_range => 25,
range_end => 127,
default => 1,
);

Loading…
Cancel
Save