* [misc] Fix unit tests for blockModel::getModelType4Projects() method

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
liugang
2025-09-29 16:41:56 +08:00
co-authored by Claude
parent 31a06d78d0
commit c83dc596d8
2 changed files with 20 additions and 27 deletions
Regular → Executable
+4
View File
@@ -308,6 +308,8 @@ class blockModel extends model
*/
public function getModelType4Projects(array $projectIdList)
{
if(empty($projectIdList)) return '';
$models = $this->dao->select('DISTINCT model')->from(TABLE_PROJECT)->where('id')->in($projectIdList)->fetchAll('model');
$models = array_flip(array_keys($models));
@@ -317,5 +319,7 @@ class blockModel extends model
if($haveScrum && $haveWater) return 'all';
if($haveScrum) return 'scrum';
if($haveWater) return 'waterfall';
return '';
}
}