Devel generate field_info_instances() error

peximo - October 17, 2009 - 17:36
Project:Devel
Version:7.x-1.x-dev
Component:devel_generate
Category:bug report
Priority:normal
Assigned:Unassigned
Status:fixed
Description

Hi,
I found this problem in devel_generate: the function cck_generate_fields() call field_info_instances() and pass to this function the bundle name but not the object type, so field_info_instances() fail to get the instance.
This patch should fix the problem.

AttachmentSize
devel_generate.patch1.63 KB

#1

peximo - October 17, 2009 - 17:36
Status:active» needs review

#2

scor - November 25, 2009 - 21:06

patch works for me. rerolled to remove CRs.

AttachmentSize
607310_fix_node_generate.patch 1.66 KB

#3

yched - November 25, 2009 - 23:30
Status:needs review» fixed

Committed. Thanks !

 
 

Drupal is a registered trademark of Dries Buytaert.