diff --git a/system/modules/isotope/docs/CHANGELOG-2.1.md b/system/modules/isotope/docs/CHANGELOG-2.1.md
index 8e6391ae02..04aaaead76 100644
--- a/system/modules/isotope/docs/CHANGELOG-2.1.md
+++ b/system/modules/isotope/docs/CHANGELOG-2.1.md
@@ -9,6 +9,7 @@ Version 2.1.2-stable (2014-??-??)
- Wrong column count in collection template again (#1091)
- Assets import calling to classes in wrong namespace (#1113)
- TypeAgent not being compatible with Contao 3.3 changes
+- Product translations not being compatible with Contao 3.3 changes (#1109)
Version 2.1.1-stable (2014-05-20)
diff --git a/system/modules/isotope/drivers/DC_ProductData.php b/system/modules/isotope/drivers/DC_ProductData.php
index d7414b564e..793cc21adb 100644
--- a/system/modules/isotope/drivers/DC_ProductData.php
+++ b/system/modules/isotope/drivers/DC_ProductData.php
@@ -28,10 +28,10 @@ class DC_ProductData extends \DC_Table
protected $blnEditLanguage;
/**
- * Array of languages for this product's type
+ * Array of translations for this product's type
* @var array
*/
- protected $arrLanguages;
+ protected $arrTranslations;
/**
* Array of language labels
@@ -441,13 +441,13 @@ public function edit($intID = false, $ajaxId = false)
}
if (count($arrPageLanguages) > 1) {
- $this->arrLanguageLabels = \System::getLanguages();
- $this->arrLanguages = array_intersect(array_keys($this->arrLanguageLabels), $arrPageLanguages);
+ $this->arrTranslationLabels = \System::getLanguages();
+ $this->arrTranslations = array_intersect(array_keys($this->arrTranslationLabels), $arrPageLanguages);
if (\Input::post('FORM_SUBMIT') == 'tl_language') {
$session = $this->Session->getData();
- if (in_array(\Input::post('language'), $this->arrLanguages)) {
+ if (in_array(\Input::post('language'), $this->arrTranslations)) {
$session['language'][$this->strTable][$this->intId] = \Input::post('language');
if (\Input::post('deleteLanguage') != '') {
@@ -463,7 +463,7 @@ public function edit($intID = false, $ajaxId = false)
\Controller::reload();
}
- if ($_SESSION['BE_DATA']['language'][$this->strTable][$this->intId] != '' && in_array($_SESSION['BE_DATA']['language'][$this->strTable][$this->intId], $this->arrLanguages)) {
+ if ($_SESSION['BE_DATA']['language'][$this->strTable][$this->intId] != '' && in_array($_SESSION['BE_DATA']['language'][$this->strTable][$this->intId], $this->arrTranslations)) {
$objRow = $this->Database->prepare("SELECT * FROM " . $this->strTable . " WHERE pid=? AND language=?")->execute($this->intId, $_SESSION['BE_DATA']['language'][$this->strTable][$this->intId]);
if (!$objRow->numRows) {
@@ -672,21 +672,21 @@ public function edit($intID = false, $ajaxId = false)
}
// Check languages
- if (is_array($this->arrLanguages) && !empty($this->arrLanguages)) {
+ if (is_array($this->arrTranslations) && !empty($this->arrTranslations)) {
$arrAvailableLanguages = $this->Database->prepare("SELECT language FROM " . $this->strTable . " WHERE pid=?")->execute($this->intId)->fetchEach('language');
$available = '';
$undefined = '';
- foreach ($this->arrLanguages as $language) {
+ foreach ($this->arrTranslations as $language) {
if (in_array($language, $arrAvailableLanguages)) {
if ($_SESSION['BE_DATA']['language'][$this->strTable][$this->intId] == $language) {
- $available .= '';
+ $available .= '';
$_SESSION['TL_INFO'] = array($GLOBALS['TL_LANG']['MSC']['editingLanguage']);
} else {
- $available .= '';
+ $available .= '';
}
} else {
- $undefined .= '';
+ $undefined .= '';
}
}