Commit 08732309 authored by Brian Lloyd's avatar Brian Lloyd

Fixed Image edit form to handle really old images with string height and

width properties.
parent 61c572b5
......@@ -43,10 +43,12 @@ kind>.
</div>
</td>
<td align="left" valign="top">
<dtml-if "height < 250">
<dtml-var tag>
<dtml-else>
<dtml-if "_.same_type(height, 1) and height and height > 250">
<dtml-var "tag(scale=250.0 / height)">
<dtml-elif "_.same_type(height, 's') and height and _.int(height) > 250">
<dtml-var "tag(scale=250.0 / _.int(height))">
<dtml-else>
<dtml-var tag>
</dtml-if>
</td>
</tr>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment