Author: ralfbecker
New Revision: 22470
URL: http://www.egroupware.org/viewvc?rev=3D22470&view=3Drev
Log:
fixed infolog customfields show regardless of type
Modified:
trunk/etemplate/inc/class.customfields_widget.inc.php
Modified: trunk/etemplate/inc/class.customfields_widget.inc.php
URL: http://www.egroupware.org/viewvc/trunk/etemplate/inc/class.customfield=
s_widget.inc.php?rev=3D22470&r1=3D22469&r2=3D22470&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
— trunk/etemplate/inc/class.customfields_widget.inc.php (original)
+++ trunk/etemplate/inc/class.customfields_widget.inc.php Wed Sep 20 19:49:=
15 2006
@@ -52,10 +52,15 @@
if ($this->appname =3D=3D ‘infolog’)
{
$type2 =3D $value[’###typ###’];
-
$type2_var =3D 'typ'; unset($value['###typ###']); $this->customfields =3D $value; }
-
=
-
else -
{ -
$type2 =3D $value; -
$type2_var =3D 'type2'; -
} if(!is_array($this->customfields)) { $cell['type'] =3D 'label';
@@ -68,7 +73,7 @@
//echo ‘<pre style=3D"text-align: left;">’; print_r($value); echo "</pr=
\n";
foreach($this->customfields as $name =3D> $field)
{
-
if (!empty($field['type2']) && $field['type2'] !=3D $type2)
-
if (!empty($field[$type2_var]) && $field[$type2_var] !=3D $type2) { continue; // not for our content type }
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net’s Techsay panel and you’ll get the chance to share your
opinions on IT & business topics through brief surveys – and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs