Index: branches/5.1.x/core/kernel/db/cat_dbitem.php =================================================================== diff -u -N -r13545 -r13811 --- branches/5.1.x/core/kernel/db/cat_dbitem.php (.../cat_dbitem.php) (revision 13545) +++ branches/5.1.x/core/kernel/db/cat_dbitem.php (.../cat_dbitem.php) (revision 13811) @@ -1,6 +1,6 @@ VirtualFields['ResourceId'] = Array(); - $this->SetDBField('Modified', adodb_mktime() ); - $this->UpdateFormattersSubFields(array('Modified')); - $this->SetDBField('ModifiedById', $this->Application->RecallVar('user_id')); + if ($this->GetChangedFields()) { + $now = adodb_mktime(); + $this->SetDBField('Modified_date', $now); + $this->SetDBField('Modified_time', $now); + $this->SetDBField('ModifiedById', $this->Application->RecallVar('user_id')); + } + if ($this->useFilenames) { $this->checkFilename(); $this->generateFilename();