Commit 46ea350d authored by osopolar's avatar osopolar 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
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment