From dbab4ad13aba955f12677bb6d2bb7e938586a02d Mon Sep 17 00:00:00 2001 From: John McLear Date: Wed, 1 Apr 2020 20:47:31 +0000 Subject: [PATCH] dont pass empty author info to edit --- src/static/js/ace.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/static/js/ace.js b/src/static/js/ace.js index 038ead7c2..0b9862070 100644 --- a/src/static/js/ace.js +++ b/src/static/js/ace.js @@ -102,7 +102,15 @@ function Ace2Editor() var prefix = 'ace_'; var name = prefix + fnName; editor[fnName] = pendingInit(function(){ - info[prefix + fnName].apply(this, arguments); + if(fnName === "setAuthorInfo"){ + if(!arguments[0]){ + top.console.warn("setAuthorInfo AuthorId not set for some reason", arguments); + }else{ + info[prefix + fnName].apply(this, arguments); + } + }else{ + info[prefix + fnName].apply(this, arguments); + } }); });