This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git


The following commit(s) were added to refs/heads/master by this push:
     new acf344e  fix reserved keyword error
acf344e is described below

commit acf344ebd8355bc16bcdd36c96014ae03ac0c9e6
Author: Daniel Gruno <[email protected]>
AuthorDate: Wed Nov 17 18:53:30 2021 +0100

    fix reserved keyword error
---
 webui/js/source/mgmt.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/webui/js/source/mgmt.js b/webui/js/source/mgmt.js
index d927b42..a279247 100644
--- a/webui/js/source/mgmt.js
+++ b/webui/js/source/mgmt.js
@@ -108,7 +108,7 @@ async function admin_save_email(edit_attachment = false) {
     let from = document.getElementById('email_from').value;
     let subject = document.getElementById('email_subject').value;
     let listname = document.getElementById('email_listname').value;
-    let private = document.getElementById('email_private').value;
+    let is_private = document.getElementById('email_private').value;
     let body = document.getElementById('email_body').value;
     let attach = null;
     if (edit_attachment) {
@@ -120,7 +120,7 @@ async function admin_save_email(edit_attachment = false) {
         from: from,
         subject: subject,
         list: listname,
-        private: private,
+        private: is_private,
         body: body,
         attachments: attach
     })
@@ -420,4 +420,4 @@ function admin_init() {
     } else { // View audit log
         GET('%sapi/mgmt.json?action=log&page=%s&size=%u'.format(apiURL, 
audit_page, audit_size), admin_audit_view, null);
     }
-}
\ No newline at end of file
+}

Reply via email to