diff --git a/etemplate/inc/class.customfields_widget.inc.php b/etemplate/inc/class.customfields_widget.inc.php index a01335dbd1..d335b977ab 100644 --- a/etemplate/inc/class.customfields_widget.inc.php +++ b/etemplate/inc/class.customfields_widget.inc.php @@ -60,7 +60,8 @@ //echo '
'; print_r($value); echo "
\n"; foreach($this->customfields as $name => $field) { - if (!empty($field['type2']) && $field['type2'] != $value) + // check if the customfield get's displayed for type $value, we can have multiple comma-separated types now + if (!empty($field['type2']) && !strstr(','.$field['type2'].',',','.$value.',')) { continue; // not for our content type }