lale-help / lale-help

A collaborative platform for volunteer refugee support.

Home Page:http://lale.help

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When adding a new task inside a work group, correct workgroup field must be preselected and non-enterable

dottorer opened this issue · comments

User 'Karl May' (user4@lale.help) is organizer of work group 'Arbeit'. If he selects 'Add task' within the group home page:
image

The work group is still selectable and could be changed.

image

It should be defaulted to the work group where the button was pushed and be grayed out.

Also, if Karl goes to his other group 'Betreuung' and hits the in-group 'add task' button, not 'Betreuung' is selected but the first 'Arbeit' again. This is not working as intended.

Tested in https://staging.lale.help with 'user4@lale.help' and password 'lalehelp'.

Same is true for supplies and projects.

hmm - all three tabs follow the same pattern and go to an url where the context of the working-group gets dropped. the fix would mean to add new endpoints which carry the work-group id and propagate it to the underlying logic. I do not have a feeling how big a change this is, but could be straight forward as the current code does not need much change and the new controller should be able to reuse the existing code.

I believe this was working correctly at least partially before. Also, we do this in the context of projects when we create a task inside the project and the work group is preselected. Maybe we just have a small glitch somewhere...