From efb218c9247bd518d083f0dde96a1892e9da4120 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 23 Nov 2006 13:52:56 +0000 Subject: [PATCH] =?UTF-8?q?we=C2=A0can=C2=A0have=C2=A0multiple=C2=A0comma-?= =?UTF-8?q?separated=C2=A0types=C2=A0now?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- etemplate/inc/class.customfields_widget.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }