From 2fffea39fac6f6704ac716c1716c65f8b786c6b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Kv=C3=A1=C4=8Dek?= Date: Wed, 23 Nov 2016 00:49:55 +0100 Subject: [PATCH] FIX: fix content observer - ignore viewed --- app/CMS/Observers/Content.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/CMS/Observers/Content.php b/app/CMS/Observers/Content.php index 4f81bf98..c5cca5d7 100644 --- a/app/CMS/Observers/Content.php +++ b/app/CMS/Observers/Content.php @@ -42,6 +42,9 @@ class Content $normalFieldsEdited = 0; foreach ($fields as $field => $change) { + if ($field == 'viewed') + continue; + $history = [ 'user_id' => \Auth::user()->id, 'content_id' => $content->id,