Commit 3dbe1a82 authored by Ken Manheimer's avatar Ken Manheimer

Fix submitted by Martijn Pieters:

Currently, any property type int or long, set to 0, will show up in the Properties Management tab as blank. This then will result in errors when trying to change values of other properties, etc.

The problem is caused by a test for getProperty in properties.dtml. If it returns false, it won't display the value. If it would test for hasProperty instead, the property is correctly displayed.

Here is a diff:
diff -r1.29 properties.dtml
46c46
<    value="<!--#if "getProperty(id)"--><!--#var "'%d' % getProperty(id)"--><!--#/if-->">
---
>    value="<!--#if "hasProperty(id)"--><!--#var "'%d' % getProperty(id)"--><!--#/if-->">
parent b9752628
......@@ -43,7 +43,7 @@ values and click "Save Changes".
<!--#if "'w' in _['sequence-item'].get('mode', 'awd')"-->
<!--#if "type in ('int', 'long')"-->
<input type="text" name="<!--#var id-->:<!--#var type-->" size="35"
value="<!--#if "getProperty(id)"--><!--#var "'%d' % getProperty(id)"--><!--#/if-->">
value="<!--#if "hasProperty(id)"--><!--#var "'%d' % getProperty(id)"--><!--#/if-->">
<!--#elif "type in ('float', 'date')"-->
<input type="text" name="<!--#var id-->:<!--#var type-->" size="35"
value="<!--#var "getProperty(id)"-->">
......
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