Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New ItemSet occurrence gets instantly validated #2333

Closed
ashklianko opened this issue Dec 22, 2021 · 1 comment
Closed

New ItemSet occurrence gets instantly validated #2333

ashklianko opened this issue Dec 22, 2021 · 1 comment
Assignees
Labels
Bug Something isn't working
Milestone

Comments

@ashklianko
Copy link
Member

@ashklianko commented on Mon Dec 20 2021

Recently we had newly added item validated only after saving or adding next item

@ashklianko ashklianko self-assigned this Dec 22, 2021
@ashklianko ashklianko added the Bug Something isn't working label Dec 22, 2021
ashklianko added a commit that referenced this issue Dec 22, 2021
-regression issue from fix of #1964
-Added validateOccurrenceOnAdd param to let form items with occurrences toggle validation of newly added occurrences on demand
alansemenov pushed a commit that referenced this issue Jan 5, 2022
-regression issue from fix of #1964
-Added validateOccurrenceOnAdd param to let form items with occurrences toggle validation of newly added occurrences on demand
alansemenov added a commit that referenced this issue Jan 5, 2022
alansemenov added a commit that referenced this issue Jan 5, 2022
* New ItemSet occurrence gets instantly validated #2333

-regression issue from fix of #1964
-Added validateOccurrenceOnAdd param to let form items with occurrences toggle validation of newly added occurrences on demand

* Consistent naming (#2333)

Co-authored-by: Alan Semenov <ase@enonic.com>
@alansemenov alansemenov reopened this Jan 5, 2022
@alansemenov
Copy link
Member

@ashklianko after the new changes the content itself doesn't become invalid after adding a new (not yet valid) occurrence

ashklianko added a commit that referenced this issue Jan 10, 2022
-reverting adding validateOccurrenceOnAdd param
ashklianko added a commit that referenced this issue Jan 10, 2022
-add occurrence buttons are using 'createAndAddOccurrence' method, I've updated it to use css to hide validation error immediately after occurrence is created and validated, and show it on next call to validate()
-Updated app config dialog to override form styling and force showing  validation error for newly added occurrence
alansemenov pushed a commit that referenced this issue Jan 10, 2022
-reverting adding validateOccurrenceOnAdd param
alansemenov pushed a commit that referenced this issue Jan 10, 2022
-add occurrence buttons are using 'createAndAddOccurrence' method, I've updated it to use css to hide validation error immediately after occurrence is created and validated, and show it on next call to validate()
-Updated app config dialog to override form styling and force showing  validation error for newly added occurrence
alansemenov pushed a commit that referenced this issue Jan 10, 2022
* New ItemSet occurrence gets instantly validated #2333

-regression issue from fix of #1964
-Added validateOccurrenceOnAdd param to let form items with occurrences toggle validation of newly added occurrences on demand

* Consistent naming (#2333)

Co-authored-by: Alan Semenov <ase@enonic.com>
(cherry picked from commit 11024ae)
alansemenov pushed a commit that referenced this issue Jan 10, 2022
-reverting adding validateOccurrenceOnAdd param

(cherry picked from commit 8eb6bde)
alansemenov pushed a commit that referenced this issue Jan 10, 2022
-add occurrence buttons are using 'createAndAddOccurrence' method, I've updated it to use css to hide validation error immediately after occurrence is created and validated, and show it on next call to validate()
-Updated app config dialog to override form styling and force showing  validation error for newly added occurrence

(cherry picked from commit 0308a7a)
alansemenov added a commit that referenced this issue Jan 10, 2022
New ItemSet occurrence gets instantly validated #2333
@alansemenov alansemenov added this to the 4.1.1 milestone Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants