From eb02bbde2430d6665cbad06f43a12233ba288f88 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 20 Sep 2006 17:49:15 +0000 Subject: [PATCH] fixed infolog customfields show regardless of type --- etemplate/inc/class.customfields_widget.inc.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/etemplate/inc/class.customfields_widget.inc.php b/etemplate/inc/class.customfields_widget.inc.php index a889823eb8..99276115f2 100644 --- a/etemplate/inc/class.customfields_widget.inc.php +++ b/etemplate/inc/class.customfields_widget.inc.php @@ -52,10 +52,15 @@ if ($this->appname == 'infolog') { $type2 = $value['###typ###']; + $type2_var = 'typ'; unset($value['###typ###']); $this->customfields = $value; } - + else + { + $type2 = $value; + $type2_var = 'type2'; + } if(!is_array($this->customfields)) { $cell['type'] = 'label'; @@ -68,7 +73,7 @@ //echo '
'; print_r($value); echo "
\n"; foreach($this->customfields as $name => $field) { - if (!empty($field['type2']) && $field['type2'] != $type2) + if (!empty($field[$type2_var]) && $field[$type2_var] != $type2) { continue; // not for our content type }