[TYPO3-core] RFC #14982: Save and view only working with content and pages

caspar at gosign.de caspar at gosign.de
Sun Jul 4 12:37:01 CEST 2010


Dear Ingo,

you used the wrong bug id in the subject ... #14983 is correct

your patchline

if (is_array($pagesTSC['common.']['table.'][$table.'.']) &&
is_int($pagesTSC['options.']['table.'][$table.'.']['FePreviewPid'])) {

does not work.

first: you are using a wrong array-key ('options.') in the second
statement, it has to be 'common.'

second: the value of 'FePreviewPid' is not an int, it is a numeric string.
So you have to use is_numeric()

added corrected patch.

after correction: +1 in reading and testing

Caspar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: saveAndView_2.patch
Type: text/x-patch
Size: 4879 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100704/0c108c8e/attachment.bin>


More information about the TYPO3-team-core mailing list