Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

甘特图完成的任务进度展示1%问题 #341

Open
yinitian opened this issue Aug 31, 2020 · 0 comments
Open

甘特图完成的任务进度展示1%问题 #341

yinitian opened this issue Aug 31, 2020 · 0 comments

Comments

@yinitian
Copy link

public function getProgress(array $task, array $columns)
{
    if ($task['is_active'] == self::STATUS_CLOSED) {
        return 100;
    }

    return isset($task['progress']) && $task['progress'] ?: 0;
}

发现TaskModel内部该方法写法异常导致
可以修改为
return isset($task['progress']) && $task['progress'] ? $task['progress']: 0;
或者
return $task['progress'] ?? 0;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant