diff options
author | Ermal <eri@pfsense.org> | 2011-03-21 20:29:16 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-03-21 20:42:00 +0000 |
commit | 7efd99722a4334586655f70132b2e86cd1e2b8c0 (patch) | |
tree | 4ab79dadd77c954db30673879f96756fb21b5249 /etc | |
parent | 71edee5e5780231dba9f2ec9290b0dff37d4be2f (diff) | |
download | pfsense-7efd99722a4334586655f70132b2e86cd1e2b8c0.zip pfsense-7efd99722a4334586655f70132b2e86cd1e2b8c0.tar.gz |
Ticket #1374. Actually test the right field name.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/shaper.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc index c56543a..4b24f9b 100644 --- a/etc/inc/shaper.inc +++ b/etc/inc/shaper.inc @@ -2770,8 +2770,10 @@ class dummynet_class { $reqdfieldsn[] = "Bandwidth"; $reqdfields[] = "bandwidthtype"; $reqdfieldsn[] = "Bandwidthtype"; - $reqdfields[] = "name"; - $reqdfieldsn[] = "Name"; + if (!empty($data['newname'])) { + $reqdfields[] = "newname"; + $reqdfieldsn[] = "Name"; + } shaper_do_input_validation($data, $reqdfields, $reqdfieldsn, $input_errors); |