Skip to content

Commit

Permalink
Merge branch 'hotfix/2.6.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Sep 17, 2019
2 parents 9265ce5 + c62cb70 commit 348a595
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 12 deletions.
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"require":{
"php": "~5.4 || ~7.0",
"contao/core-bundle": "^3.5.2 || ~4.1",
"contao/core-bundle": "^3.5.2 || ~4.2",
"contao-community-alliance/composer-plugin": "~2.4 || ~3.0",
"terminal42/contao-conditionalselectmenu":"^3.0.3",
"terminal42/dcawizard": "~2.3",
Expand Down Expand Up @@ -53,7 +53,6 @@
},
"conflict": {
"terminal42/contao-fineuploader": "< 2.0 || >= 3.0",
"contao/core-bundle": "4.0.0 || 4.0.1",
"contao/manager-plugin": "<2.0 || >= 3.0",
"mpay24/mpay24-php": "< 4.0 || >= 5.0"
},
Expand Down
4 changes: 4 additions & 0 deletions system/modules/isotope/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,10 @@
$GLOBALS['TL_CRON']['daily'][] = array('Isotope\Automator', 'deleteOldOrders');
$GLOBALS['TL_CRON']['daily'][] = array('Isotope\Automator', 'convertCurrencies');

if (VERSION >= 4.0) {
$GLOBALS['TL_CRON']['daily'][] = array('Contao\Automator', 'rotateLogs');
}


/**
* Auto_item keywords
Expand Down
14 changes: 12 additions & 2 deletions system/modules/isotope/docs/CHANGELOG-2.6.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,26 @@
Isotope eCommerce Changelog
===========================

Version 2.6.1 (2019-08-28)
Version 2.6.2 (2019-09-17)
---------------------------------

### Fixed

- Failed to generate product cache when showing old or new products (#2071)
- StringUtil::trimsplit is not available in Contao 3.5 (#2067)
- Correctly show upload errors in Contao 4 (#2070)
- Filter error in product variant list (#2068)
- Automatically rotate log files in Contao 4 (#2065)


Version 2.6.1 (2019-08-28)
---------------------------------

### Fixed

- Product reader page shows articles of product list page (#2060)



Version 2.6.0 (2019-08-27)
---------------------------------

Expand Down
2 changes: 1 addition & 1 deletion system/modules/isotope/drivers/DC_ProductData.php
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ public function edit($intID = false, $ajaxId = false)

if ($blnLanguageUpdated) {
\Session::getInstance()->setData($session);
$_SESSION['TL_INFO'] = '';
unset($_SESSION['TL_INFO']);
\Controller::reload();
}

Expand Down
2 changes: 1 addition & 1 deletion system/modules/isotope/library/Isotope/Isotope.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class Isotope extends \Controller
/**
* Isotope version
*/
const VERSION = '2.6.0';
const VERSION = '2.6.2';

/**
* True if the system has been initialized
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ public function generate(array $arrConfig)
return $text;
}

$keywords = StringUtil::trimsplit(' |-', $keywords);
$keywords = trimsplit(' |-', $keywords);
$keywords = array_filter(array_unique($keywords));

foreach ($keywords as $word) {
Expand Down
4 changes: 2 additions & 2 deletions system/modules/isotope/library/Isotope/Module/ProductList.php
Original file line number Diff line number Diff line change
Expand Up @@ -517,10 +517,10 @@ protected function getProductCacheExpiration()
if ('show_new' === $this->iso_newFilter || 'show_old' === $this->iso_newFilter) {
$added = \Database::getInstance()
->execute("
SELECT MIN(dateAdded)
SELECT MIN(dateAdded) AS expires
FROM tl_iso_product
WHERE dateAdded>" . Isotope::getConfig()->getNewProductLimit() . "
")
")->expires
;

if ($added < $expires) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ protected function findProducts($arrCacheIds = null)
$arrColumns = array();
$arrFilters = Isotope::getRequestCache()->getFiltersForModules($this->iso_filterModules);
$arrCategories = $this->findCategories($arrFilters);
$queryBuilder = new FilterQueryBuilder($arrCategories);
$queryBuilder = new FilterQueryBuilder($arrFilters);

$arrColumns[] = "(
(tl_iso_product.pid=0 AND tl_iso_product.type NOT IN (SELECT id FROM tl_iso_producttype WHERE variants='1'))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,12 @@ public function validateUpload()
}

if ($objUploader->hasError()) {
foreach ($_SESSION['TL_ERROR'] as $strError) {
$this->addError($strError);
$messages = VERSION >= 4.0 ? \System::getContainer()->get('session')->getFlashBag()->peek('contao_be_error') : $_SESSION['TL_ERROR'];

if (\is_array($messages)) {
foreach ($messages as $strError) {
$this->addError($strError);
}
}
}

Expand Down

0 comments on commit 348a595

Please sign in to comment.