[erp5_property_sheets]: set default of text_content to empty string
Before, the text content of a new text document derived portal type suche as Notebook was None. This lead to ui problems (displaying None in text editor) and to download the data attachment from jio because downloadable mixin would try to get len(None)
Showing
-
Could be possible to move this fix to officejs js side? for example doing some sanity checks on text_content in gadget_officejs_jio_notebook_view. Then we avoid to have this custom python code on the property and also we keep all these changes in the officejs bt only
-
Developer
The problem also exists when opening a notebook in erp5 (without officejs). If the default is not an empty string, then "None" is displayed. I think the default for text should be empty string instead of None. If we do a work around in officejs, then erp5 is not fixed.
-
Developer
@romain the change does not have any impact on existing erp5 tests. Here is the latest test result of this branch: https://nexedijs.erp5.net/#/test_result_module/20191014-8B1C7B1E
Please register or sign in to comment