Fix: Miscellaneous bugs on tasks management

Conflicts:
	htdocs/core/lib/project.lib.php