Commit fdf5d1f8 authored by Gabriel Monnerat's avatar Gabriel Monnerat

erp5_document_scanner: Avoid issues when getPreferredCanvasData is None

parent 99feb675
......@@ -7,7 +7,7 @@ if not active_preference:
active_preference = portal.portal_preferences.getActivePreference()
canvas_data = active_preference and \
json.loads(active_preference.getPreferredCroppedCanvasData()) or {}
json.loads(active_preference.getPreferredCroppedCanvasData("{}")) or {}
canvas_data["dialog_method"] = context.Base_storeDocumentFromCameraInActiveProcess.getId()
......
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