* [bug#58990] adjust action table get.

This commit is contained in:
caoyanyi
2025-01-07 17:14:55 +08:00
committed by 田淑杰
parent 486ef19d75
commit b9ec7b6058
+1 -4
View File
@@ -1180,10 +1180,7 @@ class actionModel extends model
$objectNames = $relatedProjects = $requirements = $epics = array();
foreach($objectTypes as $objectType => $objectIdList)
{
if(!isset($this->config->objectTables[$objectType]) && strpos(',makeup,pivot,', ",{$objectType},") !== false) continue; // If no defination for this type, omit it.
/* Get object name field, if it's empty, continue. */
$table = $objectType == 'makeup' ? '`' . $this->config->db->prefix . 'overtime`' : $this->config->objectTables[$objectType];
if(!isset($this->config->objectTables[$objectType]) && strpos(',makeup,pivot,', ",{$objectType},") === false) continue; // If no defination for this type, omit it.
if(isset($this->config->objectTables[$objectType])) $table = $this->config->objectTables[$objectType];
if($objectType == 'makeup') $table = TABLE_OVERTIME;