Эх сурвалжийг харах

HUE-6261 [oozie] Avoid JS error preventing workflow action status update

krish 8 жил өмнө
parent
commit
ac2cb891e0

+ 1 - 1
apps/oozie/src/oozie/templates/dashboard/list_oozie_workflow.mako

@@ -676,7 +676,7 @@ ${ dashboard.import_layout() }
               _w = viewModel.getWidgetById('33430f0f-ebfa-c3ec-f237-3e77efa03d0a');
               _w = viewModel.getWidgetById('33430f0f-ebfa-c3ec-f237-3e77efa03d0a');
             }
             }
             else {
             else {
-              _w = viewModel.getWidgetById($("[id^=wdg_" + actionId + "]").attr("id").substr(4));
+              _w = viewModel.getWidgetById($("[id^=wdg_" + actionId.toLowerCase() + "]").attr("id").substr(4));
             }
             }
             if (_w != null) {
             if (_w != null) {
               if (['SUCCEEDED', 'OK', 'DONE'].indexOf(action.status) > -1) {
               if (['SUCCEEDED', 'OK', 'DONE'].indexOf(action.status) > -1) {

+ 1 - 1
apps/oozie/src/oozie/templates/dashboard/list_oozie_workflow_graph.mako

@@ -81,7 +81,7 @@ ${ dashboard.import_layout() }
               _w = viewModel.getWidgetById('33430f0f-ebfa-c3ec-f237-3e77efa03d0a');
               _w = viewModel.getWidgetById('33430f0f-ebfa-c3ec-f237-3e77efa03d0a');
             }
             }
             else {
             else {
-              _w = viewModel.getWidgetById($("[id^=wdg_" + actionId + "]").attr("id").substr(4));
+              _w = viewModel.getWidgetById($("[id^=wdg_" + actionId.toLowerCase() + "]").attr("id").substr(4));
             }
             }
             if (_w != null) {
             if (_w != null) {
               if (['SUCCEEDED', 'OK', 'DONE'].indexOf(action.status) > -1) {
               if (['SUCCEEDED', 'OK', 'DONE'].indexOf(action.status) > -1) {