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.

Comments

joachim’s picture

Status: Active » Fixed
StatusFileSize
new1.74 KB

Solution is to get data from content_types(), not content_fields().

#710500 by joachim: Fixed use of unreliable CCK type_name.

joachim’s picture

Version: 6.x-2.x-dev » 6.x-1.x-dev
Status: Fixed » Patch (to be ported)

Should probably apply to 6--1.

joachim’s picture

Status: Patch (to be ported) » Fixed

Status: Fixed » Closed (fixed)

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