Skip to content

Commit

Permalink
SAK-32175 - LTI tooltitle and pagetitle values should be i18ned when …
Browse files Browse the repository at this point in the history
…they are empty (sakaiproject#3897)
  • Loading branch information
danielmerino authored and ottenhoff committed Feb 14, 2017
1 parent 7b58978 commit 5d8d147
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,9 @@ public static void addPlacementInfo(Properties props, String placementId)
if ( tooltitle == null ) tooltitle = pagetitle;

if ( pagetitle != null ) setProperty(props,BasicLTIConstants.RESOURCE_LINK_TITLE,pagetitle);
else setProperty(props,BasicLTIConstants.RESOURCE_LINK_TITLE,placement.getTitle());
if ( tooltitle != null ) setProperty(props,BasicLTIConstants.RESOURCE_LINK_DESCRIPTION,tooltitle);
else setProperty(props,BasicLTIConstants.RESOURCE_LINK_DESCRIPTION,placement.getTitle());

String releasename = toNull(getCorrectProperty(config,"releasename", placement));
String releaseemail = toNull(getCorrectProperty(config,"releaseemail", placement));
Expand Down

0 comments on commit 5d8d147

Please sign in to comment.