Closed (outdated)
Project:
ClamAV
Version:
6.x-1.0-beta2
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Feb 2012 at 09:09 UTC
Updated:
11 Apr 2016 at 21:30 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Jing He commentedI created a patch against 7.x-1.0-alpha1 to add support for multi-value fields.
This patch uses hook_field_widget_WIDGET_TYPE_form_alter() to add upload_validators to file/image field widgets.
Please test it thoroughly in your environment.
Comment #2
Jing He commentedComment #3
manarth commentedGreat spot, thanks Jing He!
Committed to 7.x-1.x. I've taken the part of your patch which handles the multiple
deltas; I haven't changed the function-delegation to usehook_field_widget_WIDGET_TYPE_form_alterjust yet (although that's something I'll review for another release).Thanks again :-)
Comment #4
rooby commentedSince this is committed to D7 this is now for D6.
Comment #5
llillf commentedHi all, is there a patch for D6?
Comment #6
rooby commentedNot yet. The patch that was committed to drupal 7 still has to be ported to drupal 6.
Comment #7
llillf commentedHi rooby,
Any advice of patching D6?
Thanks a lot!!!
Comment #8
llillf commentedHi all,
Attached is a patch I made for Drupal 6. It works for me! Hope it can help anyone and be committed to D6 after more testing.
Comment #9
adammaloneCan we please get rid of the whitespace added in the patch?
Comment #10
mcdruid commentedThanks for the work that went into this, but closing D6 issues as outdated now.