Bug #79834
closedSuggestions with "placeholder" fetches first result in database
0%
Description
Hello there,
when using placeholders for fields (infamously well known for it's use in file description/title/alternative in textpic elements), it may happen that a suggestion for another language is shown instead of the language of the currently related record.
This can be recreated by doing the following:
- upload an image file
- create meta information in a translation
- create any additional metadata information for the default language (mind the order here)
- create a textpic element and link the file
- in the original language you'll see the alternative text of the translation shown as placeholder
In the frontend, everything is fine in the end, since the relation is properly resolved, but in the backend, redactors are often confused when this happens, as this isn't a behavior they'd expect.
The reason why this happens lays in how the placeholder is generated in backend/Classes/Form/FormDataProvider/TcaInputPlaceholder.php
.
I could not exactly figure out where this happens, but pretty well why.
Since the TCA definition for the placeholder is __row|uid_local|metadata|alternative
(which is pretty clever and elegant IMHO) there is no way, internally, to know the language of the parent and therefore get the proper language, but I think that it's in the placeholder where this should be implemented somehow.
Please let me know if you need anymore information.
Regards
Tizian
Updated by Riccardo De Contardi about 7 years ago
Still present on 9.0.0-dev (latest master) - only the placeholder are affected; the information for the correct language are shown in frontend
Updated by Riccardo De Contardi about 7 years ago
- Related to Bug #65059: Non-translated FAL metadata appears as UID-list in linked record added
Updated by Benni Mack over 5 years ago
- Target version changed from next-patchlevel to Candidate for patchlevel
Updated by Susanne Moog over 4 years ago
- Status changed from New to Closed
This is not reproducible since site handling / renewed language handling.