summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/diag_tables.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-01-07 17:10:23 +0545
committerPhil Davis <phil.davis@inf.org>2016-01-07 17:10:23 +0545
commit6f80b61e0b0606493b8f51d929ac2dd57ead56cd (patch)
tree80fbead6fdf6529e05f86eecb0d966006182fe69 /src/usr/local/www/diag_tables.php
parent24c16d618ea9f61a07b016808915706c9d2da7f5 (diff)
downloadpfsense-6f80b61e0b0606493b8f51d929ac2dd57ead56cd.zip
pfsense-6f80b61e0b0606493b8f51d929ac2dd57ead56cd.tar.gz
diag_tables change deleteall to clearall
This is part 1(a) only of https://redmine.pfsense.org/issues/5742 When the name is 'deleteall' then a popup comes saying "You may not delete the last row".
Diffstat (limited to 'src/usr/local/www/diag_tables.php')
-rw-r--r--src/usr/local/www/diag_tables.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/diag_tables.php b/src/usr/local/www/diag_tables.php
index 36b41f7..a543f83 100644
--- a/src/usr/local/www/diag_tables.php
+++ b/src/usr/local/www/diag_tables.php
@@ -82,7 +82,7 @@ if ($_REQUEST['delete']) {
exit;
}
-if ($_POST['deleteall']) {
+if ($_POST['clearall']) {
exec("/sbin/pfctl -t " . escapeshellarg($tablename) . " -T show", $entries);
if (is_array($entries)) {
foreach ($entries as $entryA) {
@@ -215,7 +215,7 @@ if ($bogons || !empty($entries)) {
))->setHelp('Download the latest bogon data')->addClass('btn-warning');
} elseif (!empty($entries)) {
$section->addInput(new Form_Button(
- 'deleteall',
+ 'clearall',
'Clear Table'
))->setHelp('Clear all of the entries in this table')->addClass('btn-danger');
}
OpenPOWER on IntegriCloud