Bug 1343748

Summary: unable to edit or remove custom provision dialogues
Product: Red Hat CloudForms Management Engine Reporter: Colin Arnott <carnott>
Component: UI - OPSAssignee: lgalis
Status: CLOSED ERRATA QA Contact: Jiri Stefanisin <jistefan>
Severity: high Docs Contact:
Priority: high    
Version: 5.5.0CC: benglish, carnott, cpelland, dajohnso, dclarizi, hkataria, jhardy, jistefan, jprause, mfeifer, mpovolny, obarenbo
Target Milestone: GAKeywords: ZStream
Target Release: 5.5.5   
Hardware: x86_64   
OS: Linux   
Whiteboard: provision:dialog:ui
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Previously, the edit and remove toolbar options for a custom provisioning dialog were disabled after clicking on a default dialog. As a result, users were unable to edit or remove custom provisioning dialogs. This was caused by an incorrect condition in the code which has been fixed, and the edit/remove toolbar options now work as expected after clicking on a default dialog.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-26 15:35:25 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:
Description Flags
cfme- edit-remove_provision_dialogue.png none

Description Colin Arnott 2016-06-07 19:57:10 UTC
Created attachment 1165759 [details]
cfme- edit-remove_provision_dialogue.png

Description of problem:
I am unable to edit or remove custom provision dialogues. Even copying the provision dialogue to a new dialogue results in no ability to edit or remove. 

Even if I create it fresh I am still not able to remove or edit.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. navigate to Automate → Customization → Provisioning Dialogs
2. copy any existing 

Actual results:
edit and remove are greyed out

Expected results:
I should be able to edit or remove provisioning dialogues that I create

Additional info:
fixed in cfme-

Comment 2 Colin Arnott 2016-06-07 20:00:54 UTC
Created attachment 1165760 [details]
cfme- edit-remove_provision_dialogue.png

working on cfme-

Comment 5 Harpreet Kataria 2016-06-20 16:00:23 UTC

Thi sissue only exists on 5.5.z, it was introduced in commit 0053550fe5245a67fe4074250838414463880f85. Can you please take a look, looks like if condition is incorrect on line 87 in app/helpers/application_helper/toolbar_builder.rb if bgi[:buttonSelect] == "host_vmdb_choice" && x_active_tree == :old_dialogs_tree && @record && @record[:default]
Let me know if you have questions.


Comment 6 CFME Bot 2016-06-21 20:22:41 UTC
New commit detected on cfme/5.5.z:

commit 5bd76ea45b86d12a40e9721ba990d2aecc89f257
Author:     Laura Galis <lgalis@redhat.com>
AuthorDate: Mon Jun 20 17:12:20 2016 -0400
Commit:     Laura Galis <lgalis@redhat.com>
CommitDate: Tue Jun 21 10:48:21 2016 -0400

    Edit/Remove toolbar options for a custom provision dialog are disbaled after clickeng on a default dialog

 app/helpers/application_helper/toolbar_builder.rb | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

Comment 10 errata-xmlrpc 2016-07-26 15:35:25 UTC
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.