Skip to content

Commit

Permalink
Merge 2c610b2 into 5f93bb6
Browse files Browse the repository at this point in the history
  • Loading branch information
hvelarde committed Sep 18, 2018
2 parents 5f93bb6 + 2c610b2 commit 57410bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ There's a frood who really knows where his towel is.
1.7b5 (unreleased)
^^^^^^^^^^^^^^^^^^

- Nothing changed yet.
- Avoid ``ValueError`` on tile initialization;
this fixes a regression on release 1.7b4.
[hvelarde]


1.7b4 (2018-09-18)
Expand Down
3 changes: 2 additions & 1 deletion src/collective/cover/tiles/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ def applyTileConfigurations(self):
if not isinstance(field_conf, dict):
continue # field is not ordered

fields[field_name].order = int(field_conf.get('order', 0))
if field_conf.get('order'):
fields[field_name].order = int(field_conf['order'])

def set(self, data):
# when setting data, we need to purge scales/image data...
Expand Down

0 comments on commit 57410bd

Please sign in to comment.