From 1aabc98d07b4b755013893cea6d8f6fcbb5e6b76 Mon Sep 17 00:00:00 2001 From: liugang Date: Mon, 21 Aug 2023 17:41:33 +0800 Subject: [PATCH] * custom: respons all custom fields and show fields. --- module/custom/control.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/module/custom/control.php b/module/custom/control.php index 8799a7e0a1..e2e8a8e45e 100644 --- a/module/custom/control.php +++ b/module/custom/control.php @@ -655,7 +655,13 @@ class custom extends control $this->loadModel('setting')->deleteItems("owner=$account&module=$module§ion=$section&key=$key"); } - return $this->send(array('result' => 'success', 'callback' => 'loadCurrentPage')); + $this->loadModel('common')->loadConfigFromDB(); + $this->app->loadLang($module); + $this->app->loadConfig($module); + + $customFields = $this->config->$module->list->{'custom' . ucfirst($key)}; + $showFields = $this->config->$module->custom->$key; + return $this->send(array('result' => 'success', 'key' => $key, 'callback' => 'loadCurrentPage', 'customFields' => $customFields, 'showFields' => $showFields)); } /**