fix empty submit
This commit is contained in:
parent
1fdf81c50b
commit
587d261ab7
@ -50,7 +50,7 @@ class Manage extends dcNsProcess
|
|||||||
$current = ManageVars::init();
|
$current = ManageVars::init();
|
||||||
|
|
||||||
# Delete logs
|
# Delete logs
|
||||||
if ($current->selected_logs || $current->all_logs) {
|
if ($current->selected_logs && !empty($current->entries) || $current->all_logs) {
|
||||||
try {
|
try {
|
||||||
dcCore::app()->log->delLogs($current->entries, $current->all_logs);
|
dcCore::app()->log->delLogs($current->entries, $current->all_logs);
|
||||||
dcPage::addSuccessNotice(
|
dcPage::addSuccessNotice(
|
||||||
@ -113,7 +113,8 @@ class Manage extends dcNsProcess
|
|||||||
(new Submit(['selected_logs']))->class('delete')->value(__('Delete selected logs')),
|
(new Submit(['selected_logs']))->class('delete')->value(__('Delete selected logs')),
|
||||||
(new Submit(['all_logs']))->class('delete')->value(__('Delete all logs')),
|
(new Submit(['all_logs']))->class('delete')->value(__('Delete all logs')),
|
||||||
]),
|
]),
|
||||||
(new Text('',
|
(new Text(
|
||||||
|
'',
|
||||||
dcCore::app()->adminurl?->getHiddenFormFields('admin.plugin.' . My::id(), $current->filter->values()) .
|
dcCore::app()->adminurl?->getHiddenFormFields('admin.plugin.' . My::id(), $current->filter->values()) .
|
||||||
dcCore::app()->formNonce()
|
dcCore::app()->formNonce()
|
||||||
)),
|
)),
|
||||||
|
Loading…
Reference in New Issue
Block a user