From 46ea350d3b1e26f1c08ff322939666c5b8aec4f4 Mon Sep 17 00:00:00 2001
From: osopolar <osopolar@115856.no-reply.drupal.org>
Date: Fri, 17 Aug 2012 12:14:24 +0200
Subject: [PATCH] Issue #1712044 by osopolar: Fixed
 views_handler_field_history_user_timestamp()::render() should look at date
 changed instead of created as in node_mark().

---
 lib/Views/node/Plugin/views/field/HistoryUserTimestamp.php | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/Views/node/Plugin/views/field/HistoryUserTimestamp.php b/lib/Views/node/Plugin/views/field/HistoryUserTimestamp.php
index 1f3701a70a93..c7d8d36c5032 100644
--- a/lib/Views/node/Plugin/views/field/HistoryUserTimestamp.php
+++ b/lib/Views/node/Plugin/views/field/HistoryUserTimestamp.php
@@ -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) {
-- 
GitLab