Bug #44988
Arbitrary image is shown, if all images are set to hidden
Status: | Resolved | Start date: | 2013-01-30 | |
---|---|---|---|---|
Priority: | Must have | Due date: | ||
Assigned To: | - | % Done: | 100% |
|
Category: | File Abstraction Layer (FAL) | Spent time: | - | |
Target version: | - | |||
TYPO3 Version: | 6.0 | Is Regression: | ||
PHP Version: | Sprint Focus: | |||
Complexity: |
Description
If you add multiple images to a tt_content element
but mark all of them hidden, an image is shown which has
the uid of the number of images added to the element.
This is the case because TYPO3 puts the relation count in the
field and the frontend adapter service does not reset
the field if no relations are found.
Related issues
Associated revisions
[BUGFIX] Reset legacy fields if no relations are found
If you add multiple images to a tt_content element
but mark all of them hidden, an image is shown which has
the uid of the number of images added to the element.
This is the case because TYPO3 puts the relation count in the
field and the frontend adapter service does not reset
the field if no relations are found.
The solution is to set the legacy fields in any case.
This change adds a test which fails without a fix
and another test which shows that the original behaviour
is not affected.
Resolves: #44988
Releases: 6.0, 6.1
Change-Id: Ia4690fb0a68cd4d6832aef6712bc69adf00f8a5f
Reviewed-on: https://review.typo3.org/17848
Reviewed-by: Jigal van Hemert
Tested-by: Jigal van Hemert
[BUGFIX] Reset legacy fields if no relations are found
If you add multiple images to a tt_content element
but mark all of them hidden, an image is shown which has
the uid of the number of images added to the element.
This is the case because TYPO3 puts the relation count in the
field and the frontend adapter service does not reset
the field if no relations are found.
The solution is to set the legacy fields in any case.
This change adds a test which fails without a fix
and another test which shows that the original behaviour
is not affected.
Change-Id: I2cacfe185e1371331ab7564413e43c7d6cce8556
Resolves: #44988
Releases: 6.0, 6.1
Reviewed-on: https://review.typo3.org/17871
Reviewed-by: Jigal van Hemert
Tested-by: Jigal van Hemert
History
#1 Updated by Gerrit Code Review over 2 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/17848
#2 Updated by Anonymous over 2 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset f5674cb505802de17248d8a522b292e5f515d00a.
#3 Updated by Gerrit Code Review over 2 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch TYPO3_6-0 has been pushed to the review server.
It is available at https://review.typo3.org/17871
#4 Updated by Anonymous over 2 years ago
- Status changed from Under Review to Resolved
Applied in changeset 6d1402932b027837518e35693b1e835cd413de3b.