Clean up declared log if prevent_redeclare != "N" #2238

This commit is contained in:
Kijin Sung 2024-03-28 21:38:38 +09:00
parent 35b5bcc030
commit 5cfd348096
2 changed files with 16 additions and 3 deletions

View file

@ -417,6 +417,15 @@ class CommentAdminController extends Comment
{ {
return $output; return $output;
} }
if(Context::get('prevent_redeclare') !== 'Y')
{
$output = executeQuery('comment.deleteDeclaredCommentLog', $args);
if(!$output->toBool())
{
return $output;
}
}
} }
} }

View file

@ -117,10 +117,14 @@ class DocumentAdminController extends Document
{ {
return $output; return $output;
} }
$output = executeQuery('document.deleteDocumentDeclaredLog', $args);
if (!$output->toBool()) if(Context::get('prevent_redeclare') !== 'Y')
{ {
return $output; $output = executeQuery('document.deleteDocumentDeclaredLog', $args);
if (!$output->toBool())
{
return $output;
}
} }
} }
} }