Skip to content

Commit

Permalink
* bugfix: List view failed to show up because of uninitialized parser…
Browse files Browse the repository at this point in the history
… object.
  • Loading branch information
franzholz committed Feb 14, 2020
1 parent 33b3c9e commit a36d25f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
3 changes: 2 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

2020-02-14 Franz Holzinger <[email protected]>
* bugfix: List view failed to show up because of uninitialized parser object.

2020-02-13 Franz Holzinger <[email protected]>
* bugfix for TYPO3 9.5: Do not use cObj->substituteMarkerArrayCached.
Expand Down
5 changes: 4 additions & 1 deletion marker/class.tx_ttproducts_marker.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ public function setGlobalMarkerArray ($piVars, $locallang, $LLkey) {
$langArray[$key] = $value;
$out = $value;
}
$markerArray['###'.strtoupper($key).'###'] = $out;
$markerArray['###' . strtoupper($key) . '###'] = $out;
}
}
}
Expand Down Expand Up @@ -364,7 +364,10 @@ public function getMarkerFields (&$templateCode, &$tableFieldArray, &$requiredFi
}
}
$tagArray = $retTagArray;
} else {
$tagArray = array();
}

$parentArray = array_unique($parentArray);
sort($parentArray);

Expand Down
12 changes: 10 additions & 2 deletions view/class.tx_ttproducts_list_view.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/***************************************************************
* Copyright notice
*
* (c) 2019 Franz Holzinger ([email protected])
* (c) 2020 Franz Holzinger ([email protected])
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
Expand Down Expand Up @@ -144,7 +144,7 @@ public function &advanceCategory (
}


public function &advanceProduct (
public function advanceProduct (
&$productAndItemsFrameWork,
&$productFrameWork,
&$itemListOut,
Expand Down Expand Up @@ -448,6 +448,14 @@ public function printView (
$globalMarkerArray = $markerObj->getGlobalMarkerArray();
$whereCat = '';

$parser = $this->cObj;
if (
defined('TYPO3_version') &&
version_compare(TYPO3_version, '7.0.0', '>=')
) {
$parser = tx_div2007_core::newHtmlParser(false);
}

$relatedListView = GeneralUtility::makeInstance('tx_ttproducts_relatedlist_view');
$relatedListView->init($this->cObj, $this->pidListObj->getPidlist(), $this->pidListObj->getRecursive());

Expand Down

0 comments on commit a36d25f

Please sign in to comment.