Closed (fixed)
Project:
Custom Field
Version:
3.1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Mar 2025 at 18:11 UTC
Updated:
5 Mar 2025 at 21:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
swentel commentedComment #3
swentel commentedbetter title
Comment #4
swentel commentedComment #5
keshav patel commented@swentel
Please check that "file_validate_extensions" is mistakenly substituted by "FileImageDimensions", it should be changed to "FileExtension".
Comment #6
swentel commentedAh crap, that was stupid sorry :) New patch.
Comment #7
apmsooner commentedWe will probably need to create a 4.x new branch with core dependency ^10.3 || 11 to handle this as I believe these changes to file logic were introduced in 10.3 and therefore not compatible with 10.2. I'd say let me do that first and then can reassign this issue to that branch.
Comment #8
swentel commented10.2.x is EOL, so just up the constraint of the module to 10.3 - that's good enough imo. A new branch seems way overkill for that.
Comment #9
swentel commentedAlso, those validations area introduced in 10.2.0, so it's fine no?
Comment #10
apmsooner commentedPHP stan says they were introduced in 10.3? https://git.drupalcode.org/project/custom_field/-/jobs/4499168
Comment #11
swentel commentedHmm, change record says 10.2.0, and in 10.4.x branch of DC too: https://git.drupalcode.org/project/drupal/-/blob/10.4.x/core/modules/fil...
Comment #12
apmsooner commentedOkay let me test this. If you can please push the change to the issue fork, i can test easier also.
Comment #13
swentel commentedPushed! (sorry, needed patches file for composer.patches for a couple of projects quickly, so did that first :)
Comment #15
apmsooner commentedComment #17
apmsooner commentedThanks for the patch on this. I verified it was indeed introduced in 10.2. In 10.3 there is a trait introduced that we can use to further simplify but will cross that bridge later ;)
Comment #18
apmsooner commented