Commit 4b87d3ea authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

add 'display=display' argument in setConversion just same as arguments in...

add 'display=display' argument in setConversion just same as arguments in getConversion() otherwise generateCacheId() value differs and images cache will not be hit.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29441 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c579463e
......@@ -389,7 +389,7 @@ class Image(File, OFSImage):
mime, image = self._makeDisplayPhoto(display, format=format, quality=quality,
resolution=resolution, frame=frame,
image_size=image_size)
self.setConversion(image, mime, format=format, quality=quality,
self.setConversion(image, mime, display=display, format=format, quality=quality,
resolution=resolution, frame=frame,
image_size=image_size)
RESPONSE.setHeader('Content-Type', mime)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment