You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zeppelin.apache.org by jo...@apache.org on 2022/04/14 03:18:07 UTC
[zeppelin] branch master updated: [ZEPPELIN-5717] Fix incorrect editor value gotten by Runner (#4353)
This is an automated email from the ASF dual-hosted git repository.
jongyoul pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/zeppelin.git
The following commit(s) were added to refs/heads/master by this push:
new e5b9020bae [ZEPPELIN-5717] Fix incorrect editor value gotten by Runner (#4353)
e5b9020bae is described below
commit e5b9020bae940c120a2d5b3c0483314da7ac2861
Author: Leomax_Sun <28...@qq.com>
AuthorDate: Thu Apr 14 11:18:02 2022 +0800
[ZEPPELIN-5717] Fix incorrect editor value gotten by Runner (#4353)
---
zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js b/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js
index 0858519c05..4053cd8af3 100644
--- a/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js
+++ b/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js
@@ -1230,7 +1230,7 @@ function ParagraphCtrl($scope, $rootScope, $route, $window, $routeParams, $locat
};
$scope.getEditorValue = function() {
- return !$scope.editor ? $scope.paragraph.text : $scope.editor.getValue();
+ return !$scope.editor || $scope.viewOnly ? $scope.paragraph.text : $scope.editor.getValue();
};
$scope.getProgress = function() {