Hi,

As a token of good intentions ;) I provide a small patch for
wizard.xsl. This patch solves a problem in showing html-typed
fields as rich text areas.

The problem occurs when a field has ftype="html" and uses an
fdatapath to retrieve the field, e.g. inside a list:

<field fdatapath="object/[EMAIL PROTECTED]'lead']" ftype="html"/>

The original wizard.xsl searches for html-typed fields only
directly under the form element, the new version searches
all descendants of the form element.


Index: wizard.xsl
===================================================================
RCS file:
/usr/local/cvs/applications/editwizard/templates/data/xsl/wizard.xsl,v
retrieving revision 1.123
diff -u -3 -r1.123 wizard.xsl
--- wizard.xsl  11 Mar 2004 15:11:21 -0000      1.123
+++ wizard.xsl  5 Apr 2004 07:43:44 -0000
@@ -107,7 +107,7 @@
           var htmlAreas = new Array();
         ]]></xsl:text>
 
-      <xsl:for-each
select="//wizard/[EMAIL PROTECTED]//wizard/curform]/[EMAIL 
PROTECTED]&apos;html&apos;]">
+      <xsl:for-each
select="//wizard/[EMAIL PROTECTED]//wizard/curform]/descendant::[EMAIL 
PROTECTED]&apos;html&
apos;]">
         htmlAreas[htmlAreas.length] = '<xsl:value-of
select="@fieldname"/>';
       </xsl:for-each>


Regards,
Ronald Wildenberg.

Reply via email to