Closed (fixed)
Project:
Manual Crop (old)
Version:
7.x-1.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
8 Nov 2012 at 14:44 UTC
Updated:
22 Nov 2012 at 19:40 UTC
Jump to comment: Most recent file
Seems there is a small regression error with required-fields.
The #element_validate doesn't contain a 'file_managed_file_validate' anymore.
This was fixed in #1356386: Fields set to "Required" are not validated but doesn't work in the latest version.
Quick fix is to add the 'file_managed_file_validate' to the #element_validate array. (Around line 119 and 323?)
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | manualcrop-validation_fix-1835482-1.patch | 714 bytes | spadxiii |
Comments
Comment #1
spadxiii commentedMade a small patch, similar to the linked issue.
Note that I didn't add the function to the second part, as this wasn't done in the original commit either
see: http://drupalcode.org/project/manual-crop.git/commitdiff/f1e8069554d54b4...
Comment #2
matthijsHi,
Thanks for the patch, I've just committed (again ;-) ) and pushed it!
Matthijs