Commit 107949e
committed
[BUGFIX] Properly parse Country property in CountrySelectViewHelper
The implementation of #99911 missed to address that the
`<f:form.countrySelect>` ViewHelper needs to properly evaluate
the Country object, when referenced as a domain model property
instead of getting accessed via `value`.
This patch adds a test for this case and adapts retrieval
in the ViewHelper's `convertToPlainValue()` method.
Also, a drive-by typo is fixed.
Resolves: #107200
Related: #99911
Related: #104997
Releases: main
Change-Id: Ibf202c21a70d96303b188d7a5ad4fd45e055f263
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/90238
Tested-by: Garvin Hicking <garvin@hick.ing>
Tested-by: Oliver Klee <typo3-coding@oliverklee.de>
Tested-by: core-ci <typo3@b13.com>
Reviewed-by: Simon Praetorius <simon@praetorius.me>
Reviewed-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Tested-by: Simon Praetorius <simon@praetorius.me>
Tested-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Garvin Hicking <garvin@hick.ing>1 parent ccee9fb commit 107949e
File tree
3 files changed
+43
-1
lines changed- typo3/sysext
- extbase/Tests/Functional/Persistence/Generic/Mapper
- fluid/Classes/ViewHelpers/Form
3 files changed
+43
-1
lines changedLines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
| 30 | + | |
28 | 31 | | |
| 32 | + | |
29 | 33 | | |
30 | 34 | | |
31 | 35 | | |
| |||
44 | 48 | | |
45 | 49 | | |
46 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
47 | 73 | | |
48 | 74 | | |
49 | 75 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
321 | | - | |
| 321 | + | |
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
| |||
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
195 | 211 | | |
0 commit comments