Skip to content

Commit

Permalink
[com_contenthistory] - fix for not delete keep forever items (#20430)
Browse files Browse the repository at this point in the history
* [com_contenthistory] - fix for not delete kepp forever items

* don't stop delete

* cs

* cs removed spaces at end of line
  • Loading branch information
alikon authored and Michael Babker committed Jun 18, 2018
1 parent f583345 commit 7a33abe
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 7a33abe

Please sign in to comment.