From 3bac4c85e06c2865597be7c8ed439a7a9bfeb56f Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 11 Apr 2024 21:53:29 +0300 Subject: [PATCH] [PDF] Fix loader for filling pdf-forms --- apps/api/documents/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/documents/api.js b/apps/api/documents/api.js index 3c608820e0..bd70e839de 100644 --- a/apps/api/documents/api.js +++ b/apps/api/documents/api.js @@ -1079,7 +1079,7 @@ if (!(type && typeof type[1] === 'string') && (config.editorConfig && config.editorConfig.mode == 'view' || config.document && config.document.permissions && (config.document.permissions.edit === false && !config.document.permissions.review ))) params += "&mode=view"; - if (type && typeof type[1] === 'string' && config.document && config.document.permissions && config.document.permissions.edit === false) + if (type && typeof type[1] === 'string' && (config.document && config.document.permissions && config.document.permissions.edit === false || config.editorConfig && config.editorConfig.mode == 'view')) params += "&mode=fillforms"; if (config.document) {