* Fixed the error of screenModel::processXLabel.

This commit is contained in:
wangxuepeng
2023-11-25 17:17:40 +08:00
parent cbfda99507
commit 01b6441f6d
+2 -4
View File
@@ -759,10 +759,8 @@ class screenModel extends model
public function processXLabel(array $xLabels, string $type, string $object, string $field): array
{
$options = $this->getSysOptions($type, $object, $field);
foreach($xLabels as $label)
{
$xLabelValues[$label] = isset($options[$label]) ? $options[$label] : $label;
}
$xLabelValues = array();
foreach($xLabels as $label) $xLabelValues[$label] = isset($options[$label]) ? $options[$label] : $label;
return $xLabelValues;
}