From 473129bbc3ddcb6011f2dd9a736addabe1db8acc Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Thu, 17 Jan 2013 17:00:03 -0200 Subject: Allow to edit default queue. Should fix #1995 --- etc/inc/shaper.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc index dacdb7e..cec5157 100644 --- a/etc/inc/shaper.inc +++ b/etc/inc/shaper.inc @@ -985,7 +985,7 @@ class priq_queue { $input_errors[] = "Queue names must be alphanumeric and _ or - only."; if (!empty($data['name']) && !preg_match("/^[a-zA-Z0-9_-]*$/", $data['name'])) $input_errors[] = "Queue names must be alphanumeric and _ or - only."; - if (!empty($data['default']) && altq_get_default_queue($data['interface'])) + if (!empty($data['default']) && altq_get_default_queue($data['interface']) && ($data['name'] != $this->GetQName())) $input_errors[] = "Only one default queue per interface is allowed."; } -- cgit v1.1