* [task#125954,done,0.5h] adjust execution dropmenu data for api.

This commit is contained in:
caoyanyi
2024-08-20 13:36:26 +08:00
committed by 李阳
parent 17daa7256b
commit fe2b7ed053
+4 -2
View File
@@ -129,9 +129,11 @@ class executionsEntry extends entry
$account = $this->app->user->account;
$projects = $data->data->projects;
$dropMenu = array('involved' => array(), 'other' => array(), 'closed' => array());
foreach($data->data->executions as $projectID => $projectExecutions)
foreach($data->data->projects as $projectID => $projectName)
{
foreach($projectExecutions as $execution)
if(!isset($data->data->projectExecutions->$projectID)) continue;
foreach($data->data->projectExecutions->$projectID as $execution)
{
if(helper::diffDate(date('Y-m-d'), $execution->end) > 0) $execution->delay = true;
$teams = $execution->teams;