[Typo3-shop] bug in zk_products
Franz Holzinger
franz at fholzinger.com
Sat Jan 15 13:26:35 CET 2005
Benedikt schrieb:
> Hi,
>
> I think I discovered a little bug in ZK Shop (close to line 1920 in
> tx_ttproducts).
>
> // URL
> $markerArray = $this->addURLMarkers($markerArray);
> $subpartArray = array();
> // dh+
> //$wrappedSubpartArray = array();
> // dh-
>
> the array wrappedSubpartArray is redifined without any reason and so some
> marker don't work any more. just commenting the function out works and
> doesn't seem to make any further problems.
>
The reason is that the previous parts of wrappedSubpartArray belong only
to the itemFrameWork.
-----
$itemsOut.=
$this->cObj->substituteMarkerArrayCached($t["item"],$markerArray,array(),$wrappedSubpartArray);
}
if ($itemsOut) {
$out.=$this->cObj->substituteMarkerArrayCached($t["itemFrameWork"],
array(), array("###ITEM_SINGLE###"=>$itemsOut));
}
-----
And the code position you have pointed out is for the listFrameWork.
----
$t["itemFrameWork"] =
$this->cObj->getSubpart($t["listFrameWork"],"###ITEM_LIST###");
----
So itemFrameWork is a part of the listFrameWork.
The initialisation deletes the wrappedSubpartArray that has already been
used for itemFrameWork. The markers for the itemFrameWork are not
intended to be used in the listFrameWork.
Franz
More information about the TYPO3-project-tt-products
mailing list