diff --git a/src/pfwbged/collection/portlet.pt b/src/pfwbged/collection/portlet.pt index 72411eb..76418b2 100644 --- a/src/pfwbged/collection/portlet.pt +++ b/src/pfwbged/collection/portlet.pt @@ -14,7 +14,8 @@ -
+
diff --git a/src/pfwbged/collection/portlet.py b/src/pfwbged/collection/portlet.py index 9f6c71e..ac99b37 100644 --- a/src/pfwbged/collection/portlet.py +++ b/src/pfwbged/collection/portlet.py @@ -152,7 +152,10 @@ class Renderer(base.Renderer): return result def table(self): - table_class = get_appropriate_table_class(self.context, self.collection().query) + collection = self.collection() + if collection is None: + return + table_class = get_appropriate_table_class(self.context, collection.query) table = table_class(self, self.request) table.values = self.results() table.update()