Description of problem: I am working in the CFME web UI, in Automate -> Customization. I edit an existing service dialog, and try to move a newly created element inside the box where I places it. This leads to an error message. Version-Release number of selected component (if applicable): 5.4.0.5 How reproducible: Steps to Reproduce: 1. Open an existing service dialog 2. Go to an existing box 3. Add an element 4. Do not explicitely save now. 5. In the left bar, go to the box containing the element 6. Try to move the new but unsaved element 7. Watch the error message Actual results: Error message "undefined method `[]' for nil:NilClass [miq_ae_customization/dialog_res_reorder]" Expected results: Object is moved. I could accept that I cannot move while not saved, too. Additional info:
Service dialog elements cannot be reordered in 5.5 . Issue can be seen in 5.4
https://github.com/ManageIQ/manageiq/pull/7161
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/040c343747524160aa9e82dddd19aa0435e6520a commit 040c343747524160aa9e82dddd19aa0435e6520a Author: Jozef Zigmund <jzigmund> AuthorDate: Wed Mar 23 16:15:08 2016 +0100 Commit: Jozef Zigmund <jzigmund> CommitDate: Mon Apr 4 15:57:23 2016 +0200 Fix the error when user reorders an unsaved element in a service dialog Use item order number instead of record ID (unsaved element doesn't have ID) https://bugzilla.redhat.com/show_bug.cgi?id=1238721 app/assets/javascripts/miq_application.js | 11 +++++++++++ .../miq_ae_customization_controller/dialogs.rb | 20 ++++++++++++++++---- 2 files changed, 27 insertions(+), 4 deletions(-)
https://github.com/ManageIQ/manageiq/pull/7849
Fixed. Verified in 5.6.0.1-beta2.20160413141124_e25ac0e
New commit detected on cfme/5.5.z: https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=47b5bd63a52df0532b83a29f8c6103d7c46a1245 commit 47b5bd63a52df0532b83a29f8c6103d7c46a1245 Author: Jozef Zigmund <jzigmund> AuthorDate: Wed Mar 23 16:15:08 2016 +0100 Commit: Jozef Zigmund <jzigmund> CommitDate: Mon Apr 18 15:03:52 2016 +0200 Fix the error when user reorders an unsaved element in a service dialog Use item order number instead of record ID (unsaved element doesn't have ID) https://bugzilla.redhat.com/show_bug.cgi?id=1238721 app/assets/javascripts/miq_application.js | 11 +++++++++++ .../miq_ae_customization_controller/dialogs.rb | 20 ++++++++++++++++---- 2 files changed, 27 insertions(+), 4 deletions(-)
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://access.redhat.com/errata/RHBA-2016:1348