Problem/Motivation

For security reasons I’m required to update jQuery on all our sites to a version that doesn’t have known security issues. clientside_validation needs a few minor tweaks to work.

Steps to reproduce

Use jquery_update and update to the current jquery version (3.7.1). See that form submissions stop working because of JavaScript errors.

Proposed resolution

  • Collect issues caused by removed/changed API calls
  • Exchange them with their up-to-date alternatives

Remaining tasks

  • Review the provided patch
  • More testing

User interface changes

None

API changes

None

Data model changes

None

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

torotil created an issue. See original summary.

joseph.olstad’s picture

There's an easy fix to this. Update the configuration

here:

/admin/config/user-interface/clientside-validation-jquery-settings

Change the CDN Base URL to:

https://cdn.jsdelivr.net/npm/jquery-validation@1.21.0/dist/

Check the "Use JS from CDN" checkbox

Then press the "Save configuration" button.

Rebuild caches.

joseph.olstad’s picture

Assigned: Unassigned » joseph.olstad
joseph.olstad’s picture

Title: Support for up-to-date jquery versions (3.7.1) » Support for up-to-date jquery versions (3.7.1+ and 4.0.0-beta2+)
Version: 7.x-1.x-dev » 4.0.x-dev

  • joseph.olstad committed 0db6e6a0 on 4.0.x
    Issue #3483133 by joseph.olstad: Support for up-to-date jquery versions...
joseph.olstad’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.