diff --git a/administrator/components/com_contenthistory/models/history.php b/administrator/components/com_contenthistory/models/history.php index 41d032eb7ba5b..92376fade3371 100644 --- a/administrator/components/com_contenthistory/models/history.php +++ b/administrator/components/com_contenthistory/models/history.php @@ -120,6 +120,12 @@ public function delete(&$pks) { if ($table->load($pk)) { + if ($table->keep_forever === "1") + { + unset($pks[$i]); + continue; + } + if ($this->canEdit($table)) { if (!$table->delete($pk))