Skip to content

Commit

Permalink
FIX: Remove Fluent status flag text.
Browse files Browse the repository at this point in the history
As discussed in the UX PRs, core does not support multiple status flag texts being present.
  • Loading branch information
cpenny committed Aug 16, 2018
1 parent ce9a159 commit 6a6928b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/Extension/FluentFilteredExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ public function updateStatusFlags(&$flags)
}

// Add new status flag for "not visible".
$flags['fluentfiltered'] = array(
'text' => _t(__CLASS__ . '.LOCALEFILTEREDSHORT', 'Filtered'),
$flags['fluentfiltered'] = [
'text' => null,
'title' => _t(__CLASS__ . '.LOCALEFILTEREDHELP', 'This page is not visible in this locale')
);
];
}

/**
Expand Down
6 changes: 0 additions & 6 deletions tests/php/Extension/FluentFilteredExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,5 @@ public function testUpdateStatusFlags()
$flags = $page->getStatusFlags();

$this->assertTrue(array_key_exists('fluentfiltered', $flags));

if (!array_key_exists('fluentfiltered', $flags)) {
return;
}

$this->assertEquals('Filtered', $flags['fluentfiltered']['text']);
}
}

0 comments on commit 6a6928b

Please sign in to comment.