Skip to content

Commit

Permalink
Merge 0a725b8 into 57121ea
Browse files Browse the repository at this point in the history
  • Loading branch information
hvelarde committed Jan 26, 2017
2 parents 57121ea + 0a725b8 commit bde50ef
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .travis.yml
Expand Up @@ -4,6 +4,8 @@ sudo: false
cache:
directories:
- eggs
addons:
firefox: latest-esr
env:
- PLONE_VERSION=4.2
- PLONE_VERSION=4.3
Expand Down
2 changes: 2 additions & 0 deletions buildout.cfg
Expand Up @@ -43,3 +43,5 @@ scripts =

[versions]
plone.app.querystring = 1.2.5
# use latest version of coverage
coverage =
3 changes: 2 additions & 1 deletion docs/CHANGES.rst
Expand Up @@ -4,7 +4,8 @@ There's a frood who really knows where his towel is
1.0b9 (unreleased)
^^^^^^^^^^^^^^^^^^

- Nothing changed yet.
- Handle corner case when upgrade step for 1008 found a collection with no query defined.
[hvelarde]


1.0b8 (2015-10-16)
Expand Down
3 changes: 3 additions & 0 deletions src/collective/nitf/upgrades/v1008/__init__.py
Expand Up @@ -24,6 +24,9 @@ def fix_collections(context):
except AttributeError:
query = obj.getQuery() # Dexterity

if query is None:
continue # collection has no query defined

fixed_query = []
for item in query:
fixed_item = dict(item)
Expand Down

0 comments on commit bde50ef

Please sign in to comment.