Created attachment 1495261 [details] Object behavior Description of problem: ----------------------- This BZ, I found whiling automating... For "Template and Image" objects when we execute custom button with dialog it should return to exact detail page from where execution started. but Detail page linking to ("Service>workload"). Version-Release number of selected component (if applicable): ------------------------------------------------------------- Version 5.9.5.2.20181015201954_5f1530c How reproducible: ----------------- 100% Steps to Reproduce: ------------------- 1. Create a custom button with "Template and Image" object. Use simple dialog 2. navigate to compute> cloud > Instance 3. select Images 4. select any image 5. execute custom button on it> dialog window > submit 6. It will return to the Detail page of the image but its wrong. check for the "vertical navigation bar" Actual results: --------------- The detail page is not exact from where we executed. Its linked to "Service > workloads". Expected results: ----------------- It should return to the same detail page where we start execution means "Compute>Instance>" Additional info: --------------- Attaching gif file for more clarification. showing Instance object and Template/Image object behavior.
This applicable to Version 5.10.0.20 as well. We can reproduce this with cloud or infra provider.
https://github.com/ManageIQ/manageiq-ui-classic/pull/4795
New commit detected on ManageIQ/manageiq-ui-classic/master: https://github.com/ManageIQ/manageiq-ui-classic/commit/71487182b6b79fb36e00070f339fb4cb354c7d4a commit 71487182b6b79fb36e00070f339fb4cb354c7d4a Author: Erik Clarizio <eclarizio> AuthorDate: Thu Oct 18 13:22:54 2018 -0400 Commit: Erik Clarizio <eclarizio> CommitDate: Thu Oct 18 13:22:54 2018 -0400 Fix vm_cloud image custom button return and cancel endpoints Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1640592 app/services/dialog_local_service.rb | 2 +- spec/services/dialog_local_service_spec.rb | 16 +- 2 files changed, 14 insertions(+), 4 deletions(-)
New commit detected on ManageIQ/manageiq-ui-classic/hammer: https://github.com/ManageIQ/manageiq-ui-classic/commit/4f15fcea315d3e5698ee9db55837af5c0d823b37 commit 4f15fcea315d3e5698ee9db55837af5c0d823b37 Author: Milan Zázrivec <mzazrivec> AuthorDate: Wed Oct 24 05:09:21 2018 -0400 Commit: Milan Zázrivec <mzazrivec> CommitDate: Wed Oct 24 05:09:21 2018 -0400 Merge pull request #4795 from eclarizio/BZ1640592 Fix vm_cloud image custom button return and cancel endpoints (cherry picked from commit ff14ca698bf6d2314f424318845975254f8274bd) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1640592 app/services/dialog_local_service.rb | 2 +- spec/services/dialog_local_service_spec.rb | 16 +- 2 files changed, 14 insertions(+), 4 deletions(-)
tested with the latest working fine.