Project

General

Profile

« Previous | Next » 

Revision ecaf8399

Added by Scott Ullrich over 20 years ago

Save target queue correctly after editing.

View differences:

usr/local/www/firewall_shaper_edit.php
127 127
		$pconfig['dstmask'], $pconfig['dstnot'],
128 128
		$pconfig['dstbeginport'], $pconfig['dstendport']);
129 129

  
130
	if (isset($a_shaper[$id]['targetpipe'])) {
131
		$pconfig['target'] = "targetpipe:" . $a_shaper[$id]['targetpipe'];
132
	} else if (isset($a_shaper[$id]['targetqueue'])) {
133
		$pconfig['target'] = "targetqueue:" . $a_shaper[$id]['targetqueue'];
134
	}
130
	$pconfig['targetqueue'] = $a_shaper[$id]['targetqueue'];
135 131

  
136 132
	$pconfig['direction'] = $a_shaper[$id]['direction'];
137 133
	$pconfig['iptos'] = $a_shaper[$id]['iptos'];
......
327 323
		$shaperent['descr'] = $_POST['descr'];
328 324
		$shaperent['disabled'] = $_POST['disabled'] ? true : false;
329 325

  
330
		list($targettype,$target) = explode(":", $_POST['target']);
331
		$shaperent[$targettype] = $target;
326
		$shaperent['targetqueue'] = $_POST['target'];
332 327

  
333 328
		if (isset($id) && $a_shaper[$id])
334 329
			$a_shaper[$id] = $shaperent;

Also available in: Unified diff