Skip to content

Commit

Permalink
LPS-132168 Add if to check if Google Drive exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Yang Cao committed May 13, 2021
1 parent 4788e79 commit e0bc908
Showing 1 changed file with 12 additions and 2 deletions.
Expand Up @@ -78,10 +78,20 @@ com.liferay.wiki.model.WikiPage
var classTypeIdsDLFileEntry = JSONDLfileentrytype._getFileEntryTypeIds(groupId = "${groupId}");

if ("${classTypeIdsDLFileEntry}" == "") {
var classTypeIdsDLFileEntry = '''${basicDocumentClassTypeId},${googleDriveShortcutClassTypeId}''';
if ("${googleDriveShortcutClassTypeId}" != "[]") {
var classTypeIdsDLFileEntry = '''${basicDocumentClassTypeId},${googleDriveShortcutClassTypeId}''';
}
else {
var classTypeIdsDLFileEntry = '''${basicDocumentClassTypeId}''';
}
}
else {
var classTypeIdsDLFileEntry = '''${basicDocumentClassTypeId},${googleDriveShortcutClassTypeId},${classTypeIdsDLFileEntry}''';
if ("${googleDriveShortcutClassTypeId}" != "[]") {
var classTypeIdsDLFileEntry = '''${basicDocumentClassTypeId},${googleDriveShortcutClassTypeId},${classTypeIdsDLFileEntry}''';
}
else {
var classTypeIdsDLFileEntry = '''${basicDocumentClassTypeId},${classTypeIdsDLFileEntry}''';
}
}

var classNameId = JSONClassname._getClassNameId(value = "com.liferay.journal.model.JournalArticle");
Expand Down

0 comments on commit e0bc908

Please sign in to comment.