Skip to content

Commit

Permalink
Correctly show the DCA picker in the site structure (see #906).
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Jul 4, 2017
1 parent 44cdf67 commit 887bac7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

### DEV

* Correctly show the DCA picker in the site structure (see #906).
* Correctly update the style sheets if a format definition is enabled/disabled (see #893).
* Always show the "show from" and "show until" fields (see #908).

Expand Down
7 changes: 1 addition & 6 deletions src/Resources/contao/drivers/DC_Folder.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,12 +204,7 @@ public function __construct($strTable)
// Initialize the picker
if (isset($_GET['target']) && \Input::get('act') != 'select' && \Input::get('act') != 'paste')
{
list($table) = explode('.', \Input::get('target'), 2);

if ($this->strTable != $table)
{
$this->initPicker();
}
$this->initPicker();
}

// Get all filemounts (root folders)
Expand Down
7 changes: 1 addition & 6 deletions src/Resources/contao/drivers/DC_Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,7 @@ public function __construct($strTable, $arrModule=array())
// Initialize the picker
if (isset($_GET['target']) && \Input::get('act') != 'select' && \Input::get('act') != 'paste')
{
list($table) = explode('.', \Input::get('target'), 2);

if ($this->strTable != $table)
{
$this->initPicker();
}
$this->initPicker();
}

// Get the IDs of all root records (tree view)
Expand Down

0 comments on commit 887bac7

Please sign in to comment.