[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
Sat Jan 12 13:10:58 CET 2008


Helmut Hummel schrieb:
 >>
 >> This is done by a simple check in function renderDefaultLanguageContent:
 >>
 >> if (strcmp($dLVal,''))

I just found a bug in my patch :(

it should rather be:
if (strcmp($dlVal,''))
              ^
For the additionalPrevieLangugage, this small case change tricked me...

So here is the new patch.

I also attached two screenshots, so that you can easily see the difference
before and after patching.

(Please ignore my other posting from today in this thread, if you got it)

-- 
lib.salutation = TEXT
lib.salutation.value = Kind regards, Helmut
lib.salutation.lang.de = Viele Gr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: after-patch.gif
Type: image/gif
Size: 19167 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080112/9d0213db/attachment-0002.gif 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug_6932_additionalpreviewlanguage_v2.diff
Type: text/x-patch
Size: 869 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080112/9d0213db/attachment-0001.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: before-patch.gif
Type: image/gif
Size: 16129 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080112/9d0213db/attachment-0003.gif 


More information about the TYPO3-team-core mailing list