Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Only show the root page languages in the meta wizard (see #7112)
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Nov 20, 2014
1 parent e45bbec commit 31951d5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions system/docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Contao Open Source CMS changelog
Version 3.4.0 (2014-11-XX)
--------------------------

### Fixed
Only show the root page languages in the meta wizard (see #7112).

### Fixed
Correctly create the initial version in the personal data module (see #7415).

Expand Down
6 changes: 6 additions & 0 deletions system/modules/core/widgets/MetaWizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ public function generate()
$return = '';
$taken = array();

$this->import('Database');

// Only show the root page languages (see #7112)
$objRootLangs = $this->Database->query("SELECT language FROM tl_page WHERE type='root'");
$languages = array_intersect_key($languages, array_flip($objRootLangs->fetchEach('language')));

// Add the existing entries
if (!empty($this->varValue))
{
Expand Down

0 comments on commit 31951d5

Please sign in to comment.