Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Core: fix remote validation when input is the same as in aborted request#2481

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

bidord
Copy link
Contributor

Fixes#2479

Description

There is a bug in remote validation: if the Ajax request for a remote validation rule fails, an incorrect result will be stored in$element.data('previousValue'). Then, if the same input is validated again, the previous incorrect result will be re-used and no Ajax request will be sent.

In particular, this bug will occur when a request is aborted. Which happens more often (as it should) since#2435 was merged. (although the bug could already occur before#2435 in case of a server error).

I also had to fix the"remote, data previous querystring" test. It turns out the mocked request for this test was wrong. Which didn't matter before this PR: the failed remote validation was incorrectly considered as a validation result.

@bidordbidordforce-pushed thefix-2479-remote-validation-fails branch fromd5c04b6 to94f4826CompareFebruary 21, 2024 08:20
@bytestreambytestream merged commit569e622 intojquery-validation:masterApr 21, 2024
@bidordbidord deleted the fix-2479-remote-validation-fails branchSeptember 23, 2024 11:48
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Remote validation not working in last release
2 participants
@bidord@bytestream

[8]ページ先頭

©2009-2025 Movatter.jp