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
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

vordude - December 14, 2008 - 21:35
Status:active» fixed

Thanks for the good eyes. This is fixed in the new 5.x and 6.x versions.

#2

System Message - December 28, 2008 - 21:42
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.