Download & Extend

A little bug when detect imagefield of content type

Project:Imagefield Import
Version:5.x-1.2-beta
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

#1

Status:active» fixed

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

#2

Status:fixed» closed (fixed)

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

nobody click here