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

Asset creation from parent organization buggy #360

Open
nikophil opened this issue Apr 30, 2020 · 0 comments · Fixed by #405 · May be fixed by #422
Open

Asset creation from parent organization buggy #360

nikophil opened this issue Apr 30, 2020 · 0 comments · Fixed by #405 · May be fixed by #422
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@nikophil
Copy link
Member

nikophil commented Apr 30, 2020

When listing assets for a child organization, if we follow link "new asset", after the "preAdd" step we're redirected to the "add" step with url contextualized for parent organization. IMO we should be on the url for the child organization and "structure" should not be a field of the form, but contextualized on the structure we were watching.

step to reproduce

        Given I am authenticated as "DT75"
        When I go to "/organizations/[UL-01-02-ID]/assets"
        And I follow "Ajouter un nouveau véhicule"
        And I should be on "/organizations/[UL-01-02-ID]/assets/preAdd"
        When I select "VL" from "type"
        And I press "Continuer"
        Then I should be on "/organizations/[UL-01-02-ID]/assets/add"

(last step fails because we're on /organizations/[DT75-ID]/assets/add)

@nikophil nikophil added the bug Something isn't working label Apr 30, 2020
@mRoca mRoca added the good first issue Good for newcomers label May 3, 2020
@vincentchalamon vincentchalamon linked a pull request May 20, 2020 that will close this issue
@vincentchalamon vincentchalamon linked a pull request Nov 8, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants