Skip to content

Commit

Permalink
Merge pull request #9 from plone/mis-configured-transforms-error
Browse files Browse the repository at this point in the history
fix error mis-configured transforms would cause
  • Loading branch information
vangheem committed Aug 4, 2015
2 parents 2db3e5d + 9561153 commit 810f6fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CHANGES.rst
Expand Up @@ -4,7 +4,9 @@ Changelog
2.1.8 (unreleased)
------------------

- Nothing changed yet.
- fix error mis-configured transforms would cause:
"AttributeError: 'NoneType' object has no attribute 'items'"
[vangheem]


2.1.7 (2015-06-24)
Expand Down
5 changes: 3 additions & 2 deletions Products/PortalTransforms/Transform.py
Expand Up @@ -218,8 +218,9 @@ def get_parameter_value(self, key):
type = self.get_parameter_infos(key)[0]
if type == 'dict':
result = {}
for key, val in value.items():
result[key] = val
if value:
for key, val in value.items():
result[key] = val
elif type == 'list':
result = list(value)
else:
Expand Down

0 comments on commit 810f6fd

Please sign in to comment.