Skip to content

Fix #8279 - ProjectTask - no Task ID #9679

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

Open
wants to merge 1 commit into
base: hotfix
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/ProjectTask/ProjectTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function save($check_notify = false)
{
//Bug 46012. When saving new Project Tasks instance in a workflow, make sure we set a project_task_id value
//associated with the Project if there is no project_task_id specified.
if ($this->in_workflow && empty($this->id) && empty($this->project_task_id) && !empty($this->project_id)) {
if (empty($this->id) && empty($this->project_task_id) && !empty($this->project_id)) {
$this->project_task_id = $this->getNumberOfTasksInProject($this->project_id) + 1;
}

Expand Down