Bug #87031
closedcolorpicker : pasted value is saved in database without formating/checking
100%
Description
If you paste a value into a colorpicker, some formating seems to be done but in reallity the raw value is saved in database.
A) Color missing hash (See attached Typo3ColorpickerIssueColor.gif)
- Copy "00FF00"
- Paste the value into colorpicker
- Blur out of the input
The input value will visually change to "#00ff00".
- Save page
The colorpicker displays "00FF00".
B) Random value (See attached Typo3ColorpickerIssue.gif)
- Copy "NOT_A_COLOR"
- Paste the value into colorpicker
- Blur out of the input
The input value will visually be blank. If you have a "eval => required" you will notice that the red error will disappear.
- Save page
The colorpicker displays "NOT_A_COLOR".
TCA configuration used for this example:
'tx_apxsample_color' => [
'exclude' => 1,
'label' => 'Color Hex Code',
'config' => [
'type' => 'input',
'renderType' => 'colorpicker',
'size' => 10,
'eval' => 'required'
]
]
Files
Updated by Filipe DA COSTA almost 6 years ago
- File Typo3ColorpickerIssueColor.gif Typo3ColorpickerIssueColor.gif added
- File Typo3ColorpickerIssue.gif Typo3ColorpickerIssue.gif added
Adding the missing attachments
Updated by Gerrit Code Review almost 6 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/59052
Updated by Gerrit Code Review almost 6 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/59052
Updated by Gerrit Code Review almost 6 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/59052
Updated by Gerrit Code Review over 5 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/59052
Updated by Gerrit Code Review over 5 years ago
Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60344
Updated by Filipe DA COSTA over 5 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 36223868d5e3a7b431ff9ea376ff85564f811ab7.
Updated by Andreas Kienast over 5 years ago
- Related to Bug #88593: ColorPicker throws JS error if not used in FormEngine context added