Skip to content

UI validation rule for valid time am/pm doesn't work when js is minified #17648

Closed
@markshust

Description

@markshust

Preconditions

  1. Magento 2.2.5

Steps to reproduce

  1. Run SQL: update core_config_data set value = 1 where path = 'dev/js/minify_files'
  2. bin/magento deploy:mode:set production
  3. Run production compilation scripts
  4. Try to save a ui component that validates against time12h

Expected result

  1. The input field should validate against the time12h validation rule

Actual result

  1. There is a javascript error that happens when the js is minified. The space in the validation rule is stripped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: FrontendComponent: UiFixed in 2.1.xThe issue has been fixed in 2.1 release lineFixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions