Fix #2238 add option to control whether to allow redeclaring documents

This commit is contained in:
Kijin Sung 2024-03-28 21:30:19 +09:00
parent 087b2587bf
commit fa756b5169
7 changed files with 37 additions and 7 deletions

View file

@ -113,7 +113,15 @@ class DocumentAdminController extends Document
$args = new stdClass();
$args->document_srl = $document_srl;
$output = executeQuery('document.deleteDeclaredDocuments', $args);
if(!$output->toBool()) return $output;
if (!$output->toBool())
{
return $output;
}
$output = executeQuery('document.deleteDocumentDeclaredLog', $args);
if (!$output->toBool())
{
return $output;
}
}
}