mirror of
https://github.com/processwire/processwire.git
synced 2025-08-15 03:05:26 +02:00
Fix issue processwire/processwire-issues#1334
This commit is contained in:
@@ -1294,7 +1294,7 @@ class Pagefile extends WireData {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public function ___changed($what, $old = null, $new = null) {
|
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->setUser(true, 'modified');
|
||||||
$this->set('modified', time());
|
$this->set('modified', time());
|
||||||
$this->pagefiles->trackChange('item');
|
$this->pagefiles->trackChange('item');
|
||||||
|
Reference in New Issue
Block a user