Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 6.1.0 CE GA1, 6.1.1 CE GA2, 6.1.10 EE GA1, 6.1.20 EE GA2
-
Fix Version/s: 6.1.X EE, 6.2.0 CE M5
-
Component/s: WCM, WCM > Web Content Administration
-
Branch Version/s:6.1.x
-
Backported to Branch:Committed
-
Similar Issues:
Description
JournalArticleLocalServiceImpl.copyArticle leaves the urlTitle of the copy null. This breaks display urls if the copied article had a display page set.

Suggested fix:
Add the following line to JournalArticleLocalServiceImpl.copyArticle:
newArticle.setTitle(oldArticle.getTitle());
// BugFix: set a valid urlTitle
newArticle.setUrlTitle(getUniqueUrlTitle(id, groupId, newArticleId, oldArticle.getTitle()));
newArticle.setDescription(oldArticle.getDescription());