Bug 1207313
| Summary: | UI: Cancel of Infra Provider add or edit causes exception: undefined local variable or method 'model' | ||
|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Dan Clarizio <dclarizi> |
| Component: | UI - OPS | Assignee: | Aaron Patterson <apatters> |
| Status: | CLOSED ERRATA | QA Contact: | Nandini Chandra <nachandr> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 5.4.0 | CC: | hkataria, jhardy, mpovolny, nachandr, obarenbo |
| Target Milestone: | GA | ||
| Target Release: | 5.4.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-06-16 12:56:15 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Dan Clarizio
2015-03-30 16:47:19 UTC
New commit detected on manageiq/master: https://github.com/ManageIQ/manageiq/commit/831dca9449de8539ba1e5fcafc92c8a60d46a12d commit 831dca9449de8539ba1e5fcafc92c8a60d46a12d Author: Aaron Patterson <aaron.patterson> AuthorDate: Mon Mar 30 10:42:16 2015 -0700 Commit: Aaron Patterson <aaron.patterson> CommitDate: Mon Mar 30 10:42:16 2015 -0700 store the model type on the stack the render block is instance evaled, so it doesn't have access to the controller. We store the model on the stack so that we don't need access to the instance in the render block. Fixes Bug 1207313 https://bugzilla.redhat.com/show_bug.cgi?id=1207313 vmdb/app/controllers/ems_common.rb | 3 ++- vmdb/spec/controllers/ems_infra_controller_spec.rb | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) Verified in 5.4.0.0.19.20150410165622_ad23806 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-1100.html |