Skip to content

Commit

Permalink
Fix Hidden state randomly changing when the Section Editor had an err…
Browse files Browse the repository at this point in the history
…or. Fixes #2237
  • Loading branch information
brendo committed Nov 30, 2014
1 parent 0c85493 commit 37e7bdb
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions symphony/content/content.blueprintssections.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,6 @@ public function __viewNew()
ksort($fields);
}

$meta['hidden'] = (isset($meta['hidden']) ? 'yes' : 'no');

// Set navigation group, if not already set
if (!isset($meta['navigation_group'])) {
$meta['navigation_group'] = (isset($this->_navigation[0]['name']) ? $this->_navigation[0]['name'] : __('Content'));
Expand Down Expand Up @@ -376,9 +374,6 @@ public function __viewEdit()

if (isset($_POST['meta'])) {
$meta = $_POST['meta'];
$meta['hidden'] = (isset($meta['hidden']) ? 'yes' : 'no');
$meta['filter'] = (isset($meta['filter']) ? 'yes' : 'no');

if ($meta['name'] == '') {
$meta['name'] = $section->get('name');
}
Expand Down

0 comments on commit 37e7bdb

Please sign in to comment.