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):
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
There is no vaidation performed
Validation is performed and the user is provided feedback and prevented from submitting the order
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 22.214.171.124
Fixes in PR https://github.com/ManageIQ/ui-components/pull/221
New commit detected on ManageIQ/ui-components/master:
Author: Roman Blanco <firstname.lastname@example.org>
AuthorDate: Wed Dec 13 16:28:07 2017 +0100
Commit: Roman Blanco <email@example.com>
CommitDate: Thu Dec 14 14:59:03 2017 +0100
Test for presence of 'validator_rule' instead of testing 'validator_type'
src/dialog-user/services/dialogData.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)