slaFFik/BP-GTM-System

Subactivities are not nested in their parent

Closed this issue · 7 comments

When creating a new subactivity, both from the activity list using the small green '+' icon or inside the activity item using the 'New subactivity' button, the subactivity is created at the topmost 'project' level and show in the same list of it's supposed parent activity.
Opening the supposed parent activity and clicking the 'show subactivities' button confirms this issue as the list is empty and showing just a 'there are no subactivities' message.

Do you mean subtasks?

The reason might be that parent task id is not delivered to a create subtask page. In this case ordinary task is created.

Yes, I mean subtasks.
Opening a main task, eg.
http://domain/groups/groupname/gtm/tasks/view/3/
and looking at the 'create subtask' button destination url I'm seeing something like
http://domain/groups/groupname/gtm/tasks/create?3
is this url wrong? could you eventually suggest a correct url to create a subtask for task 3 so I can manually try to do it?

I've tested - your are right, it's broken.
Need to fix this.

if you're not already on this I could try to give an hand looking at the code, I'm asking just one hint:
is this url is right to create a subtask of task 3?
http://domain/groups/groupname/gtm/tasks/create?3

I did a change (not tested) 8bb0154

Try again now.

checked on my test install, great, seems this fixed the problem!