Closed (fixed)
Project:
Imagefield Import
Version:
5.x-1.2-beta
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Nov 2008 at 08:43 UTC
Updated:
28 Dec 2008 at 21:42 UTC
when detect imagefield from content types, now all cck field will be added to the list,
the code
foreach ($types as $key => $type) {
foreach ($type['fields'] as $field) {
if ($field['type']="image") {
$matches["$key:::$field[field_name]"] = $type['name'] .": ". $field['widget']['label'];
$keys[] = "$key:::$field[field_name]";
}
}
}
should be if ($field['type']=="image") {
thanks
Comments
Comment #1
vordude commentedThanks for the good eyes. This is fixed in the new 5.x and 6.x versions.