When you edit images in the editwizard, you are forced to upload a new image
even if there is already one upoaded. The bug is caused by a hidden field
that has to be filled in and which is always empty when you start editing.
The problem can be solved by checking if there is already image in
wizard.xsl:
........
<xsl:template name="ftype-image">
<xsl:if test="@maywrite!='false'">
<xsl:choose>
<xsl:when test="@dttype='binary' and not(upload)">
<div class="imageupload">
<div>
<input type="hidden" name="[EMAIL PROTECTED]" value=""
dttype="binary" ftype="image" >
<!-- changed Martijn Houtman
<xsl:if test="@dtrequired='true'">
-->
<xsl:if test="@dtrequired='true' and
starts-with(@number, 'n')">
<xsl:attribute name="dtrequired">true</xsl:attribute>
</xsl:if>
</input>
<a
href="{$uploadpage}&popupid={$popupid}&[EMAIL PROTECTED]&wizard={/wizar
d/@instance}&[EMAIL PROTECTED]" onclick="return
doStartUpload(this);">
<xsl:call-template name="prompt_image_upload"/>
</a>
<br/>
<xsl:if test="not(starts-with(@number, 'n'))">
<img src="{node:function($cloud, string(@number),
concat('servletpath(', $cloudkey, ',cache(', $imagesize,
'))'))}" hspace="0" vspace="0" border="0"
title="[EMAIL PROTECTED]'description']}"/>
<br/>
</xsl:if>
</div>
.......
It might be that there are more places where this has to be done. Probably
there is the same problem with attachments.
Martijn Houtman
Martijn Houtman