Scope and Service value are overwrited in update form
Summary
When using the update form on Incident
/Maintenance
/Monitor
the Service
/Scope
selected values doesn't correspond to the value of the current resource.
Steps to reproduce
- Create a
Incident
/Maintenance
/Monitor
with aService
/Scope
that is not the first in the list. - Try to use the update form of that created resource
What is the current bug behavior?
In the Service
/Scope
the first value (of possible one) is selected
What is the expected correct behavior?
In the Service
/Scope
the value of the current resource should be selected
Relevant logs and/or screenshots
Environment info
0.10.0
Possible fixes
Related lines of code :
- https://gitlab.com/prod-manager/prod-manager/-/blob/master/ProdManager/routes/maintenance/views.py#L125-127
- https://gitlab.com/prod-manager/prod-manager/-/blob/master/ProdManager/routes/incident/views.py#L121-123
- https://gitlab.com/prod-manager/prod-manager/-/blob/master/ProdManager/routes/monitor/views.py#L89-91
Edited by Guillaume MARTINEZ