Add the Recycle Bin allows you to save the settings.

This commit is contained in:
BJRambo 2016-05-13 21:52:05 +09:00
parent af75450611
commit ba4746f0fe
5 changed files with 55 additions and 8 deletions

View file

@ -235,10 +235,17 @@ class trashAdminController extends trash
{
$oTrashModel = getModel('trash');
$config = $oTrashModel->getConfig();
$oModuleController = getController('module');
$obj = Context::getRequestVars();
$this->setMessage('success_updated');
$config->trash_use = $obj->trash_use;
$output = $oModuleController->updateModuleConfig('trash', $config);
if(!$output->toBool())
{
$this->setMessage('success_updated');
}
$returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'module', 'admin', 'act', 'dispTrashAdminConfig');
$this->setRedirectUrl($returnUrl);