summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/shaper.inc6
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);
OpenPOWER on IntegriCloud