Commit b7eb3c8b authored by Ad Schellevis's avatar Ad Schellevis

(reporting -> settings) wrong form target, closes https://github.com/opnsense/core/issues/925

parent e5ec6a4f
...@@ -45,9 +45,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -45,9 +45,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
mwexec('/bin/rm /var/db/rrd/*'); mwexec('/bin/rm /var/db/rrd/*');
} else { } else {
$pconfig = $_POST; $pconfig = $_POST;
$config['rrd']['enable'] = !empty($_POST['rrdenable']);
$config['rrd']['enable'] = !empty($pconfig['rrdenable']);
$savemsg = get_std_save_message(); $savemsg = get_std_save_message();
write_config(); write_config();
} }
...@@ -100,7 +98,7 @@ $(document).ready(function() { ...@@ -100,7 +98,7 @@ $(document).ready(function() {
} }
?> ?>
<section class="col-xs-12"> <section class="col-xs-12">
<form action="diag_logs_settings.php" method="post" name="iform" id="iform"> <form method="post" name="iform" id="iform">
<input type="hidden" id="action" name="action" value="" /> <input type="hidden" id="action" name="action" value="" />
<div class="tab-content content-box col-xs-12 __mb"> <div class="tab-content content-box col-xs-12 __mb">
<div class="table-responsive"> <div class="table-responsive">
......
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