Commit 4da95925 authored by Jim Fulton's avatar Jim Fulton

Multiple selection properties were'nt initialized correctly.

parent 96cdb9ff
......@@ -84,7 +84,7 @@
##############################################################################
"""Property management"""
__version__='$Revision: 1.18 $'[11:-2]
__version__='$Revision: 1.19 $'[11:-2]
import ExtensionClass, Globals
import ZDOM
......@@ -219,7 +219,10 @@ class PropertyManager(ExtensionClass.Base, ZDOM.ElementWithAttributes):
raise 'Bad Request', 'No select variable %s' % value
self._properties=self._properties + (
{'id':id, 'type':type, 'select_variable':value},)
self._setPropValue(id, '')
if type=='selection':
self._setPropValue(id, '')
else:
self._setPropValue(id, [])
else:
self._properties=self._properties+({'id':id,'type':type},)
self._setPropValue(id, value)
......
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