[TYPO3-commerce] FYI96: #6662: Related product without valid article causes PHP error
Sascha Egerer
seg at softvision.de
Tue Mar 2 20:16:17 CET 2010
Am 02.03.10 18:56, schrieb Sascha Egerer:
> Hi,
>
> this is a SVN patch request.
>
> Type: Bugfix
>
> Branches: trunk, 0.11
>
> Forge reference: http://forge.typo3.org/issues/show/6662
>
> Problem:
>
> A product with a related product which has no active article end in an
> PHP error
> PHP Fatal error: Call to a member function returnAssocArray() on a
> non-object in
> XXX/typo3conf/ext/commerce/lib/class.tx_commerce_pibase.php on line 634
>
> Solution:
>
> Products without articles should not be returned by the
> tx_commerce_product->getRelatedProducts function.
>
Forgot to load the articles first. So the function "getNumberOfArticles"
always returs 0. But i think the function "getNumberOfArticles" should
load the Articles if they are not already loaded.
What do you think?
New patch attached.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: issue_6662.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-commerce/attachments/20100302/de84caf1/attachment.asc>
More information about the TYPO3-team-commerce
mailing list