Fix adding a new Service Catalog Item for Vmware Catalog Item Type #4750
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1630385
What:
There was a problem while adding a new Service Catalog Item for Vmware Catalog Item Type: nothing happened in the UI, no change, Catalog Item was not saved; no error message; error in log occurred.
Steps to reproduce:
=> error:
Note:
You can check Display in Catalog checkbox, while creating a Catalog Item, but it does not matter. It does not have any influence (comparing to what the BZ says).
Before: (nothing happens in the ui, no flash message, error in log)
After: (another required info was not filled in so flash messages occur)
Note2: (see the commit 56e0291)
Since
request
can be boolean or an object, I addedrequest &&
to the appropriate line.See this:
vs.
https://github.com/ManageIQ/manageiq/blob/master/app/models/miq_request_workflow.rb#L84 returns
false