When we send a form which is placed inside a modal box the proper AJAX request is made. If it succeed and no redirection is going to be made and if the returned HTML response contains any angular syntax it will be evaluated twice. It means f.e. that every controller used inside returned response will be initialized twice which leads to serious problems in angular logic.
Steps to reproduce the issue:
1. Open Horizon
2. Go to the Admin > System > Images page.
3. Pick any image without "architecture" property you like and in "Actions" menu click at "Update Metadata" position.
4. At the left side put "architecture" in input labeled as "Other" and click at "+" button.
5. At the right side put value "x86" in the input labeled as "architecture" and click "Save" at the bottom of the modal.
Fix proposed to branch: master
Review: https:/ /review. openstack. org/#/c/ 123121/