CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Suggestion #36930

archive without date -> is active

Added by Ralf-Rene Schroeder about 1 year ago. Updated 5 months ago.

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

Also available in: Atom PDF