Skip to content

Commit efcf62e

Browse files
committed
SAK-29301 - Custom title applied on a per tool basis on Home pages instead of customTitle page property.
1 parent 2631952 commit efcf62e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web/web-portlet/src/java/org/sakaiproject/portlets/PortletIFrame.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,8 @@ else if (title.length() > MAX_TITLE_LENGTH)
853853
{
854854
Site site = SiteService.getSite(toolConfig.getSiteId());
855855
SitePage page = site.getPage(toolConfig.getPageId());
856-
page.setTitleCustom(true);
856+
if (page.isHomePage()) page.setHomeToolsTitleCustom(placement.getId());
857+
else page.setTitleCustom(true);
857858

858859
// for web content tool, if it is a site page tool, and the only tool on the page, update the page title / popup.
859860
if (toolConfig != null && ! SPECIAL_WORKSITE.equals(special) && ! SPECIAL_WORKSPACE.equals(special) )

0 commit comments

Comments
 (0)