Commit 5e42a76e authored by Ad Schellevis's avatar Ad Schellevis

(legacy) add "edit by name" to firewall_schedule_edit.php. page is scheduled for full cleanup

parent dacf9492
......@@ -92,6 +92,16 @@ if (is_numericint($_GET['id']))
if (isset($_POST['id']) && is_numericint($_POST['id']))
$id = $_POST['id'];
// quick hack, cleanup follows
if (!empty($_GET['name'])) {
foreach ($a_schedules as $i => $sched) {
if ($sched['name'] == $_GET['name']) {
$id = $i;
break;
}
}
}
if (isset($id) && $a_schedules[$id]) {
$pconfig['name'] = $a_schedules[$id]['name'];
$pconfig['descr'] = html_entity_decode($a_schedules[$id]['descr']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment