Reported here: #710480: type_name key in content_fields() array is unreliable.
if (($content_type_field['type_name'] == $node->type) && (($content_type_field['module'] == 'imagefield')) || ($content_type_field['module'] == 'filefield')) {
Problem is, if a field is multi-valued, that value is not reliable -- it holds only one type and several will apply.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 710500.content_distribution.cck-field-node-types.patch | 1.74 KB | joachim |
Comments
Comment #1
joachim commentedSolution is to get data from content_types(), not content_fields().
#710500 by joachim: Fixed use of unreliable CCK type_name.
Comment #2
joachim commentedShould probably apply to 6--1.
Comment #3
joachim commented