Description of problem: Newly created service dialogs with elements that have validation added do not have the elements validated when the dialog is used. If a dialog is imported from an export of dialog using a previous version of CloudForms the validation works as expected. Version-Release number of selected component (if applicable): 5.9.0.11 How reproducible: Always Steps to Reproduce: 1. Create a Service Dialog 2. Add an element such as a text box and add a validation regex 3. Create a Catalog Item using the previously created Service Dialog 4. Order the Catalog Item 5. Enter data that fails to validate against the regex Actual results: There is no vaidation performed Expected results: Validation is performed and the user is provided feedback and prevented from submitting the order Additional info: We did find that if a dialog with elements having validation that was exported from a previous version of CloudForms was imported the validation worked as expected. When exporting both dialogs from 5.9.0 it was found that the validation_type attribute of the newly created service dialog was blank and the export of the older dialog has the validation_type set to regex. Both of the dialogs used for this test will be attached shortly.
Created attachment 1360552 [details] dialog exported from a previous version of CF
Created attachment 1360553 [details] dialog created in 5.9.0.11
Fixes in PR https://github.com/ManageIQ/ui-components/pull/221
New commit detected on ManageIQ/ui-components/master: https://github.com/ManageIQ/ui-components/commit/6ba40ed235cf3a11322e419b7b048135a372feee commit 6ba40ed235cf3a11322e419b7b048135a372feee Author: Roman Blanco <rblanco> AuthorDate: Wed Dec 13 16:28:07 2017 +0100 Commit: Roman Blanco <rblanco> CommitDate: Thu Dec 14 14:59:03 2017 +0100 Test for presence of 'validator_rule' instead of testing 'validator_type' Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1518971 src/dialog-user/services/dialogData.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)