Project

General

Profile

Actions

Task #102330

closed

Select current value in ValuePicker if mode is "replace"

Added by Sascha Egerer 6 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
Start date:
2023-11-06
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Sprint Focus:

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.

Actions #1

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

Actions #2

Updated by Garvin Hicking 6 months ago

Hi Sascha, could you check if the linked patch works for you?

Actions #3

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

Actions #4

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

Actions #5

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 :-)

Actions #6

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

Actions #7

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.

Actions #8

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

Actions #9

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

Actions #10

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

Actions #11

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

Actions #12

Updated by Sascha Egerer 6 months ago

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

Updated by Benni Mack 3 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF