Skip to content
Snippets Groups Projects
Commit 46ea350d authored by Lars Schröter's avatar Lars Schröter Committed by Tim Plunkett
Browse files

Issue #1712044 by osopolar: Fixed...

Issue #1712044 by osopolar: Fixed views_handler_field_history_user_timestamp()::render() should look at date changed instead of created as in node_mark().
parent 07220921
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -74,12 +74,11 @@ function render($values) {
global $user;
if ($user->uid) {
$last_read = $this->get_value($values);
$created = $this->get_value($values, 'created');
$changed = $this->get_value($values, 'changed');
$last_comment = module_exists('comment') && !empty($this->options['comments']) ? $this->get_value($values, 'last_comment') : 0;
if (!$last_read && $created > NODE_NEW_LIMIT) {
if (!$last_read && $changed > NODE_NEW_LIMIT) {
$mark = MARK_NEW;
}
elseif ($changed > $last_read && $changed > NODE_NEW_LIMIT) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment