mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 11:26:13 +00:00
(legacy) add "edit by name" to firewall_schedule_edit.php. page is scheduled for full cleanup
This commit is contained in:
parent
dacf949229
commit
5e42a76e7c
@ -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']);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user