Skip to content

Commit

Permalink
If an empty result set is passed to exportCSV, don't return all docs.
Browse files Browse the repository at this point in the history
This now matched the behaviour of exportXLS.
  • Loading branch information
davismr committed Jul 27, 2013
1 parent ca269b9 commit 7fbe4b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Products/CMFPlomino/PlominoView.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ def exportCSV(self,
logging.exception('Bad quoting: %s'%quoting, exc_info=True)
quoting = csv.QUOTE_NONNUMERIC

if not brain_docs:
if brain_docs is None:
brain_docs = self.getAllDocuments(getObject=False)

columns = [c.id for c in self.getColumns()]
Expand Down

0 comments on commit 7fbe4b4

Please sign in to comment.