Feature #75827

Add configuration options to \TYPO3\CMS\Extbase\Property\TypeConverter\FloatConverter

Added by Nicole Cordes over 3 years ago. Updated 10 months ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2016-04-20
Due date:
% Done:

100%

PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Currently the \TYPO3\CMS\Extbase\Property\TypeConverter\FloatConverter only accepts strings with '.' as decimal pointer. There should be some configuration options to convert different formats before.

Associated revisions

Revision f3077c99 (diff)
Added by Nicole Cordes over 3 years ago

[FEATURE] Add configuration options to FloatConverter

Converting a string to a float value needs some specific format of the
string (no thousand separator and '.' as decimal point).

So it should be possible to define some pre-sanitation for the
FloatConverter to be able to convert strings like 123,42 to float.

This patch introduces configuration options and sanitizes the string
before parsing it to float.

Resolves: #75827
Releases: master
Change-Id: I716a5a6d3b7dd4f9f8dd0f01db850a2ee82cd376
Reviewed-on: https://review.typo3.org/47829
Reviewed-by: Stephan Großberndt <>
Tested-by: Stephan Großberndt <>
Reviewed-by: Philipp Gampe <>
Tested-by: Philipp Gampe <>

History

#1 Updated by Gerrit Code Review over 3 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47829

#2 Updated by Gerrit Code Review over 3 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47829

#3 Updated by Nicole Cordes over 3 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#4 Updated by Benni Mack 10 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF