From 7ed2af7086baad313c645a12a2f34695ca11fbe9 Mon Sep 17 00:00:00 2001 From: Ambrin Chaudhary Date: Mon, 8 Jun 2020 12:13:21 +0200 Subject: [PATCH] LPS-114595 Send attribute as an object --- .../META-INF/resources/document_library/js/legacy/main.js | 2 +- .../resources/document_library/select_file_entry_type.jsp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/apps/document-library/document-library-web/src/main/resources/META-INF/resources/document_library/js/legacy/main.js b/modules/apps/document-library/document-library-web/src/main/resources/META-INF/resources/document_library/js/legacy/main.js index 6b64609e1fe20d..3d04f862c20de2 100644 --- a/modules/apps/document-library/document-library-web/src/main/resources/META-INF/resources/document_library/js/legacy/main.js +++ b/modules/apps/document-library/document-library-web/src/main/resources/META-INF/resources/document_library/js/legacy/main.js @@ -433,7 +433,7 @@ AUI.add( uri = Liferay.Util.addParams( instance.ns( 'fileEntryTypeId=' - ) + selectedItem, + ) + selectedItem.value, uri ); diff --git a/modules/apps/document-library/document-library-web/src/main/resources/META-INF/resources/document_library/select_file_entry_type.jsp b/modules/apps/document-library/document-library-web/src/main/resources/META-INF/resources/document_library/select_file_entry_type.jsp index a777ae020862f7..562d379a660dbd 100644 --- a/modules/apps/document-library/document-library-web/src/main/resources/META-INF/resources/document_library/select_file_entry_type.jsp +++ b/modules/apps/document-library/document-library-web/src/main/resources/META-INF/resources/document_library/select_file_entry_type.jsp @@ -107,7 +107,9 @@ portletURL.setParameter("eventName", eventName); Liferay.Util.getOpener().Liferay.fire( '<%= HtmlUtil.escapeJS(eventName) %>', { - data: currentTarget.attr('data-fileEntryTypeId'), + data: { + value: currentTarget.attr('data-fileEntryTypeId'), + }, } ); },