Suggestion #36930
archive without date -> is active
| Status: | Resolved | Start date: | 2012-05-07 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | - | % Done: | 100% |
|
| Category: | Core | |||
| Target version: | 2.0.0 | |||
| TYPO3 Version: | 4.7 | Has patch: | No | |
| PHP Version: | 5.3 | |||
| Votes: | 1 (View) |
Description
is there a reason for news without an archive date, that they aren't shown as active ???
(this is also written in manual)
with this small modification in NewsRepository.php they will shown as active:
// archived
if ($demand->getArchiveRestriction() == 'archived') {
$constraints[] = $query->logicalAnd(
$query->lessThan('archive', $GLOBALS['EXEC_TIME']),
$query->greaterThan('archive', 0)
);
} elseif ($demand->getArchiveRestriction() == 'active') {
$constraints[] = $query->logicalOr(
$query->greaterThanOrEqual('archive', $GLOBALS['EXEC_TIME']),
$query->equals('archive', 0)
);
}
History
Updated by Georg Ringer 5 months ago
- Category set to Core
- Status changed from New to Resolved
- Target version set to 2.0.0
- % Done changed from 0 to 100
this is already in git