diff --git a/libraries/src/Table/Table.php b/libraries/src/Table/Table.php index 44ecb8c8f0430..8a2cb546e7201 100644 --- a/libraries/src/Table/Table.php +++ b/libraries/src/Table/Table.php @@ -1698,6 +1698,12 @@ public function publish($pks = null, $state = 1, $userId = 0) $query->set($this->_db->quoteName($this->getColumnAlias('publish_up')) . ' = ' . $nowDate); } + // If there is a modified field updated it as well + if ($this->hasField('modified')) { + $nowDate = $this->_db->quote(Factory::getDate()->toSql()); + $query->set($this->_db->quoteName($this->getColumnAlias('modified')) . ' = ' . $nowDate); + } + // Determine if there is checkin support for the table. if ($this->hasField('checked_out') || $this->hasField('checked_out_time')) { $query->where(