Project

General

Profile

Actions

Bug #25368

closed

crop and cropHTML doesn't crop if "maxCharacters" is equal or lower than first word

Added by Armin Vieweg about 13 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
Start date:
2011-03-21
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Like described in ticket for format.crop viewhelper for fluid (http://forge.typo3.org/issues/11583), the crop and cropHTML method in class.tslib_content.php, doesn't crop if maxCharacters is equal or lower than the stringlength of first word.

Please see some examples in original ticket.

Thanks!
Armin

(issue imported from #M18003)


Files

18003.diff (1.69 KB) 18003.diff Administrator Admin, 2011-03-25 13:42
Actions #1

Updated by Peter Beernink about 13 years ago

Pending in Gerrit:
https://review.typo3.org/#change,1274

How to test:
Add a cropHTML to a TEXT object, and crop before the end of the first word.
Before the change, the whole value is returned, instead of the cropped version.

Example TS to test:
page = PAGE
page.typeNum = 0
page.10 = TEXT
page.10.value=Example text
page.10.cropHTML=6|...|1

Actions #2

Updated by Mr. Hudson almost 13 years ago

Patch set 3 of change I0a7ec720b12a7999245b183f36daff5cdd7a8ace has been pushed to the review server.
It is available at http://review.typo3.org/1274

Actions #3

Updated by Mr. Hudson almost 13 years ago

Patch set 1 of change I96446430bd0681e9f64c699bca9f80866a712490 has been pushed to the review server.
It is available at http://review.typo3.org/1955

Actions #4

Updated by Peter Beernink almost 13 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by Steffen Gebert almost 13 years ago

  • Category set to TypoScript
  • Target version changed from 0 to 4.5.4
  • TYPO3 Version set to 4.5
Actions #6

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF