From cb85a430d4505a528a6c941b0c0e0ca89d928463 Mon Sep 17 00:00:00 2001 From: zenggang Date: Thu, 5 Jan 2023 07:32:46 +0000 Subject: [PATCH] * Resolve feedback#1869 --- module/custom/control.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/module/custom/control.php b/module/custom/control.php index 0e51a8322d..3025c6d940 100644 --- a/module/custom/control.php +++ b/module/custom/control.php @@ -48,7 +48,19 @@ class custom extends control $currentLang = $this->app->getClientLang(); $this->app->loadLang($module); - $fieldList = zget($this->lang->$module, $field, ''); + if($lang == 'all') + { + $fieldList = array(); + $items = $this->custom->getItems("lang=all&module=$module§ion=$field&vision={$this->config->vision}"); + foreach($items as $key => $item) + { + $fieldList[$key] = $item->value; + } + } + else + { + $fieldList = zget($this->lang->$module, $field, ''); + } if($module == 'project' and $field == 'unitList') {