[TYPO3-core] RFC #12666: Copying Record with TCEMain process cmdmap throws sql errors
Susanne Moog
typo3 at susanne-moog.de
Wed Nov 18 23:19:27 CET 2009
Hi,
this is a SVN patch request.
Type: Bugfix
Bugtracker references: http://bugs.typo3.org/view.php?id=12666
Branches: Trunk
Problem:
Copying Record with TCEMain processCmdMap throws sql errors on pages
with f.e. sys_template or sys_domain records because in the method for
the localization it's not checked if the needed TCA configuration is there.
Solution:
Check it.
Steps to reproduce:
Put this for example in the constructor of your backend.php and replace
the first number with the id of a page that has one of the mentioned
records, and the second one with the target page:
$tce = t3lib_div::makeInstance('t3lib_TCEmain');
$cmd['pages'][41]['copy'] = 42;
$tce->start(array(),$cmd);
if($cmd) {
$tce->process_cmdmap();
}
Patch was tested by Sebastian and me.
Best regards,
Susanne
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tcemaincopy.patch
Type: text/x-diff
Size: 1184 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20091118/02986870/attachment.patch>
More information about the TYPO3-team-core
mailing list