* [bug#55480,done,1h] show table name if the language doesn't exist.

This commit is contained in:
liumengyi
2024-10-09 09:08:46 +08:00
committed by 刘刚
parent c8e1be3c1c
commit c7112c52bc
+2 -2
View File
@@ -1113,12 +1113,12 @@ class devModel extends model
$module->children = array();
foreach($objects[$moduleKey] as $objectKey => $objectName)
{
if($type == 'table' and !isset($this->lang->dev->tableList[$objectKey])) continue;
$defaultValue = $type == 'module' ? $objectName : $this->config->db->prefix . $objectKey;
$object = new stdclass();
$object->id = $objectName;
$object->key = $objectName;
$object->name = zget($this->lang->dev->tableList, $objectKey, $objectName);
$object->name = zget($this->lang->dev->tableList, $objectKey, $defaultValue);
$object->url = helper::createLink($currentModule, $currentMethod, "{$currentParamName}={$objectName}");
$object->active = $objectName == $currentObject ? 1 : 0;
if($object->active) $module->active = 1;