From 60cc94777032ea1a9d73a7e96978f193199076e5 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Fri, 19 Mar 2021 10:47:16 -0400 Subject: [PATCH] Fix issue processwire/processwire-issues#1334 --- wire/core/Pagefile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wire/core/Pagefile.php b/wire/core/Pagefile.php index 91d9a524..6de38eb5 100644 --- a/wire/core/Pagefile.php +++ b/wire/core/Pagefile.php @@ -1294,7 +1294,7 @@ class Pagefile extends WireData { * */ public function ___changed($what, $old = null, $new = null) { - if(in_array($what, array('description', 'tags', 'file', 'filedata'))) { + if(in_array($what, array('description', 'tags', 'file', 'filedata')) || array_key_exists($what, $this->fieldValues)) { $this->setUser(true, 'modified'); $this->set('modified', time()); $this->pagefiles->trackChange('item');