Fixed: validate bulk selection and add bulk enable/disable success feedback

This commit is contained in:
Amit sharma
2026-04-15 12:51:16 +05:30
parent 85f88f5286
commit 1a6131ad6c
4 changed files with 12 additions and 6 deletions

View File

@@ -1080,6 +1080,7 @@ class AdminModulesControllerCore extends AdminController
}
if (empty($moduleNames)) {
$this->errors[] = Tools::displayError('You must select at least one module to perform a bulk action.');
return;
}
@@ -1119,7 +1120,7 @@ class AdminModulesControllerCore extends AdminController
}
}
Configuration::updateValue('PS_SHOW_ENABLED_MODULES_' . (int)$this->id_employee, $moduleStatus);
Tools::redirectAdmin($this->getCurrentUrl(array('bulk_enable', 'type', 'modules')));
Tools::redirectAdmin($this->getCurrentUrl(array('bulk_enable', 'type', 'modules', 'conf')).'&conf='.($moduleStatus === 'enabled' ? '33' : '34'));
}
}else{