Merge branch 'feedback_1869' into 'master'

* Resolve feedback#1869

See merge request easycorp/zentaopms!6698
This commit is contained in:
王怡栋
2023-01-05 23:02:35 +00:00
+13 -1
View File
@@ -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&section=$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')
{