Made sub fields of project and task only visible if set or if item is selected.

[skip ci]