It uses the original values which is shared in the modal, which is not desirable. Upon clicking the X or the Cancel button, the original model value is updated, so utilized the copy() to resolve this behavior.
Fixes #480
Type of change
Please delete options that are not relevant.
[X] Bug fix (non-breaking change which fixes an issue)
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
[X] Visual Inspection
[X] mvn clean test was successful
Checklist:
[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my code
[X] My changes generate no new warnings
[X] New and existing unit tests pass locally with my changes
Coverage: 45.242% (+0.03%) from 45.217% when pulling fa73dd44d6f751d4c6ae65d80351d11405001cc6 on 480-update-modal-clear-values into b9bca09787babe73b5070fe572bd524e45b59adf on staging.
Description
It uses the original values which is shared in the modal, which is not desirable. Upon clicking the
X
or theCancel
button, the original model value is updated, so utilized the copy() to resolve this behavior.Fixes #480
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist: