[TYPO3-core] RFC: bugfix #6932 Unlike the default preview language, fields of additionalPreviewLanguages are shown if they are empty

Helmut Hummel typo3 at jhpc.de
Wed Dec 12 01:09:33 CET 2007


Hi,

another little language issue...

This is a SVN patch request.

Branches: 4_1, trunk

BT Reference: http://bugs.typo3.org/view.php?id=6932

Problem:
If a field of a translated record does contain a value in the default
language, a preview of this default language field is shown. If the
field in default languge is empty, nothing is shown.

Solution:
Like for default language, check if the field in
additionalPreviewLanguages contains any data.

This is done by a simple check in function renderDefaultLanguageContent:

if (strcmp($dLVal,''))

But this check is missing for additionalPreviewLanguages.

Solution:
Add this check for additionalPreviewLanguages, too.

-- 
lib.salutation = TEXT
lib.salutation.value = Kind regards, Helmut
lib.salutation.lang.de = Viele Grüße, Helmut

-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug_6932_additionalpreviewlanguage.diff
Type: text/x-patch
Size: 869 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20071212/2ff9ab00/attachment.bin 


More information about the TYPO3-team-core mailing list