Fixed
Pinned fields
Click on the next to a field label to start pinning.
Details
Assignee
Michael SaechangMichael Saechang(Deactivated)Reporter
Jan TošovskýJan TošovskýBranch Version/s
6.1.xBackported to Branch
CommittedGit Pull Request
Components
Affects versions
Priority
Medium
Details
Details
Assignee
Michael Saechang
Michael Saechang(Deactivated)Reporter
Jan Tošovský
Jan TošovskýBranch Version/s
6.1.x
Backported to Branch
Committed
Git Pull Request
Components
Affects versions
Priority
Zendesk Support
Zendesk Support
Zendesk Support
Created May 22, 2012 at 5:05 AM
Updated June 24, 2023 at 3:56 PM
Resolved June 7, 2012 at 5:55 PM
Try the following test case:
StringUtil.shorten("Inspire Designer Related - Inspire Content Manager Web Installation Guide 8.0", 75, "...");
It shortens the title to:
Inspire Designer Related - Inspire Content Manager Web Installation Guide...
Which is actually 76 characters long.
It is caused by this code:
http://svn.liferay.com/repos/public/portal/trunk/portal-service/src/com/liferay/portal/kernel/util/StringUtil.java
there should be for (int j = (length - suffix.length()); j >= 0; j--) {
instead of for (int j = length; j >= 0; j--) {