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

fix: A project without tasks should be able to complete (backport #42969) #43246

Merged
merged 2 commits into from
Sep 17, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Sep 17, 2024

This fix solves a bug where, when completing a project without tasks, it will fail to close.

  • If a project without tasks is set to "Completed", either through setting the project status directly or with the "set_project_status" function, the status is not changed but reverted back to "Open".

  • The reason for this behaviour is, that since there are no tasks to provide a completion percentage erpnext will not accept the "Completed" status.

  • While failing the bug does not throw an error or warning message to the user, hence I am assuming the behaviour is unintentional and needs to be fixed.

  • This fix solves the bug by changing the completion type to manual on completing the project if there are no tasks within the project


This is an automatic backport of pull request #42969 done by [Mergify](https://mergify.com).

@ruthra-kumar ruthra-kumar merged commit 9c4eaa2 into version-15-hotfix Sep 17, 2024
11 of 12 checks passed
@ruthra-kumar ruthra-kumar deleted the mergify/bp/version-15-hotfix/pr-42969 branch September 17, 2024 05:13
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants