[TYPO3-core] RFC: #15082: [openDocs] Exception is thrown if a record isn't found

Steffen Kamper info at sk-typo3.de
Mon Jul 12 14:09:06 CEST 2010


Hi,

This is an SVN patch request.

Type: bugfix

Bugtracker references:
http://bugs.typo3.org/view.php?id=14860

Branches:
4_4, trunk

Severity: urgent

Problem:
Since the spriteIconCall there is an exception thrown if the record is 
Null. Before it worked but with warnings.

There are cases where a record doesn't exists anymore. If openDocs is 
installed, it try to fetch the record
$record = t3lib_BEfunc::getRecordWSOL($table, $uid);

The problem now is, that the menu rendering of opendocs dies with the 
exception, which blocks the complete backend and makes it impossible to 
continue.

Solution:
Solution is easy: check the record, and if not present, return with 
empty menu entry.

vg Steffen
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 15082.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100712/bc1a949d/attachment.asc>


More information about the TYPO3-team-core mailing list