Download & Extend

cck export fails on field using hierarchical select widget

Project:Content Taxonomy
Version:6.x-1.0-rc2
Component:Code
Category:bug report
Priority:minor
Assigned:Unassigned
Status:active

Issue Summary

not sure which project this should fall under - starting with Content Taxonomy because it's about working with CCK.

if you have a content type with a content_taxonomy field using the hierarchical select widget, the code exported by CCK export includes a var_export() of an object in default_value_widget[fieldname][fieldname][tids][hierarchy]. unfortunately, the result of running var_export() on an object is not valid PHP code. so trying to import that field definition results in just a blank screen.

this is easy enough to deal with - just change stdClass::__set_state(... to (object)(.... - but ideally it would be caught before the code is returned to the user.

Comments

#1

I experience the same problem with content taxonomy and hierarchical select. Any news on this issue?

Exporting the content taxonomy field assumes, that tid on the exporting (source) and importing (destination) environment are the same I guess, because they are included in the exported code. I don't feel good with that assumption because the taxonomy may be different on destination.