← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1371116] Re: AngularJS code is evaluated twice after modal form submission

 

** Changed in: horizon
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1371116

Title:
  AngularJS code is evaluated twice after modal form submission

Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1371116/+subscriptions


References