Task #102330
closedSelect current value in ValuePicker if mode is "replace"
100%
Description
There is a "valuePicker" in TCA where predefined values can be added to a field.
There are different modes (https://docs.typo3.org/m/typo3/reference-tca/10.4/en-us/ColumnsConfig/Type/inputDefault.html#valuepicker) where one of the mode is "blank" which means the value in the field is replaced by the selection.
In this case it would be helpful if the value picker has the item selected that has the same value as the current field value.
This helps a lot if the real value is not a human readable value but the label in the value picker is.
Updated by Gerrit Code Review 6 months ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81703
Updated by Garvin Hicking 6 months ago
Hi Sascha, could you check if the linked patch works for you?
Updated by Sascha Egerer 6 months ago
Garvin Hicking wrote in #note-2:
Hi Sascha, could you check if the linked patch works for you?
Hi Garvin, thank you for you patch. I'm also already working on it but it's not yet finished. I think it's a bit more complex as it should support the selection on the initial load and could also support the selection if the input field is modified manually.
I'll push my patch later today
Updated by Gerrit Code Review 6 months ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81703
Updated by Garvin Hicking 6 months ago
Alright, thanks. Sorry, I didn't know you'd be also working on it. But this way we can combine forces, I'll happily abandon mine when you're ready :-)
Updated by Gerrit Code Review 6 months ago
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81742
Updated by Sascha Egerer 6 months ago
Garvin Hicking wrote in #note-5:
Alright, thanks. Sorry, I didn't know you'd be also working on it. But this way we can combine forces, I'll happily abandon mine when you're ready :-)
Hey Garvin, sorry it took a bit longer but I've pushed my suggestion. Would be nice if you could review it.
Updated by Gerrit Code Review 6 months ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81742
Updated by Gerrit Code Review 6 months ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81742
Updated by Gerrit Code Review 6 months ago
Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81742
Updated by Gerrit Code Review 6 months ago
Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81669
Updated by Sascha Egerer 6 months ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 6e3d637d8325f28a2fa07d8691c99593515c52de.