{"action":"created","issue":{"url":"https://api.github.com/repos/hhuijser/liferay-portal/issues/2555","labels_url":"https://api.github.com/repos/hhuijser/liferay-portal/issues/2555/labels{/name}","comments_url":"https://api.github.com/repos/hhuijser/liferay-portal/issues/2555/comments","events_url":"https://api.github.com/repos/hhuijser/liferay-portal/issues/2555/events","html_url":"https://github.com/hhuijser/liferay-portal/pull/2555","id":120121354,"number":2555,"title":"LPS-60939","user":{"login":"daledotshan","id":861683,"avatar_url":"https://avatars.githubusercontent.com/u/861683?v=3","gravatar_id":"","url":"https://api.github.com/users/daledotshan","html_url":"https://github.com/daledotshan","followers_url":"https://api.github.com/users/daledotshan/followers","following_url":"https://api.github.com/users/daledotshan/following{/other_user}","gists_url":"https://api.github.com/users/daledotshan/gists{/gist_id}","starred_url":"https://api.github.com/users/daledotshan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daledotshan/subscriptions","organizations_url":"https://api.github.com/users/daledotshan/orgs","repos_url":"https://api.github.com/users/daledotshan/repos","events_url":"https://api.github.com/users/daledotshan/events{/privacy}","received_events_url":"https://api.github.com/users/daledotshan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-03T08:57:38Z","updated_at":"2015-12-03T08:58:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/hhuijser/liferay-portal/pulls/2555","html_url":"https://github.com/hhuijser/liferay-portal/pull/2555","diff_url":"https://github.com/hhuijser/liferay-portal/pull/2555.diff","patch_url":"https://github.com/hhuijser/liferay-portal/pull/2555.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/hhuijser/liferay-portal/issues/comments/161556374","html_url":"https://github.com/hhuijser/liferay-portal/pull/2555#issuecomment-161556374","issue_url":"https://api.github.com/repos/hhuijser/liferay-portal/issues/2555","id":161556374,"user":{"login":"daledotshan","id":861683,"avatar_url":"https://avatars.githubusercontent.com/u/861683?v=3","gravatar_id":"","url":"https://api.github.com/users/daledotshan","html_url":"https://github.com/daledotshan","followers_url":"https://api.github.com/users/daledotshan/followers","following_url":"https://api.github.com/users/daledotshan/following{/other_user}","gists_url":"https://api.github.com/users/daledotshan/gists{/gist_id}","starred_url":"https://api.github.com/users/daledotshan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daledotshan/subscriptions","organizations_url":"https://api.github.com/users/daledotshan/orgs","repos_url":"https://api.github.com/users/daledotshan/repos","events_url":"https://api.github.com/users/daledotshan/events{/privacy}","received_events_url":"https://api.github.com/users/daledotshan/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T08:58:39Z","updated_at":"2015-12-03T08:58:39Z","body":"Information from Hai\r\nThe issue occur when set the below properties:\r\nlocales=lt_LT,en_US\r\nlocales.enabled=lt_LT,en_US\r\ncompany.default.locale=lt_LT\r\n\r\nlocalizationMap will be null. It has two reasons:\r\n\r\nReason1: LanguageUtil.getSupportedLocales() only return \"en_US\". Please refer to the logic CompanyLocalesBag(long companyId) (_supportedLocalesSet) in LanguageImpl.java. I think this constructor logic is wrong regarding setting _supportedLocalesSet.\r\n\r\nReason2: LocalizationUtil.getLocalizationMap() is not fit for the current case. It will lose \"en_US\" local. Please refer to LocalizationImpl.getLocalizationMap(Collection locales, Locale defaultLocale, String key) method, when defaultLocale=lt_LT, for defaultValue, it still english value by default(for explame, \"CONTRACT\" which is set in AddDefaultDocumentLibraryStructuresAction.addDLFileEntryTypes(), and the key's value is the same as between language_lt and language_en). So when en_us, it won't put its value in map as the followings in LocalizationImpl.getLocalizationMap()(356 line):\r\n\r\nif (!locale.equals(defaultLocale) && value.equals(defaultValue)) {\r\n                continue; // enter this  logic when local=en_US\r\n            }\r\nThe fix logic refers to add journalStructures, please refer to the below logic:\r\nAddDefaultJournalStructuresAction.doRun(){89 line}->DefaultDDMStructureHelperImpl.addDDMStructures(){100-104 lines}"}}