A little bug when detect imagefield of content type
wqmeng - November 29, 2008 - 08:43
| Project: | Imagefield Import |
| Version: | 5.x-1.2-beta |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
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

#1
Thanks for the good eyes. This is fixed in the new 5.x and 6.x versions.
#2
Automatically closed -- issue fixed for two weeks with no activity.