craftcms / cms

Build bespoke content experiences with Craft.
https://craftcms.com
Other
3.28k stars 637 forks source link

check if data-id is empty or isn't there at all #16164

Closed i-just closed 3 days ago

i-just commented 5 days ago

Description

Since 4.11.0 the data-id="" no longer being set on the folder <tr> which means that this check was failing and causing the validation to pass. Checking if the data-id attribute is empty or set at all solves the issue.

(Note: this code is already present in v5, and disabling actions based on the required ID works as expected there.)

Related issues

16151