Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Align issues in load_from_xml and to_xml for Patchinfo
to_xml didn't have the issue URL. The fields were also not in the same order in these 2 methods. This caused problems when updating a patchinfo failed, which then rendered the edit view again, but with the missing URL and fields in a different order. This resulted in issues not being correctly rendered. This happens because the edit action is initializing the patchinfo with load_from_xml while the update action takes the data from the submitted form without calling load_from_xml (to not override what the user entered when validation errors happen). This wouldn't be an issue with ActiveRecord.
- Loading branch information
Showing
2 changed files
with
5 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters