* Code for task #5271.

This commit is contained in:
Yagami
2019-02-23 14:43:24 +08:00
parent 3daae171f0
commit 07fe890768
7 changed files with 67 additions and 0 deletions
+10
View File
@@ -79,6 +79,11 @@ class custom extends control
$this->app->loadConfig('user');
$this->view->showDeleted = isset($this->config->user->showDeleted) ? $this->config->user->showDeleted : '0';
}
if($module == 'user' and $field == 'showField')
{
$this->app->loadConfig('user');
$this->view->showFields = isset($this->config->user->showFields) ? $this->config->user->showFields : '';
}
if(strtolower($this->server->request_method) == "post")
{
@@ -112,6 +117,11 @@ class custom extends control
$data = fixer::input('post')->get();
$this->loadModel('setting')->setItem('system.user.showDeleted', $data->showDeleted);
}
elseif($module == 'user' and $field == 'showField')
{
$data = fixer::input('post')->join('showFields', ',')->get();
$this->loadModel('setting')->setItem('system.user.showFields', $data->showFields);
}
else
{
$lang = $_POST['lang'];