Skip to content
Snippets Groups Projects
Commit dc89dd3e authored by Adrian Lorenc's avatar Adrian Lorenc
Browse files

ISAICP-9614: Use ANSI SQL standard

parent 32cb8398
No related branches found
Tags 2.3.1
2 merge requests!214ISAICP-9579: Fix SearchWidget: refer own submit callbacks precisely to prevent...,!213Release 2.3.1
......@@ -56,11 +56,11 @@ public function disableDefaultWebformSanitization(InputInterface $input): void {
#[CLI\Hook(type: HookManager::POST_COMMAND_HOOK, target: 'sql-sanitize')]
public function sanitize($result, CommandData $commandData): void {
$this->database->delete('webform_submission')
->condition('webform_id', AssessmentInterface::WEBFORM_ID, '!=')
->condition('webform_id', AssessmentInterface::WEBFORM_ID, '<>')
->execute();
$this->database->delete('webform_submission_data')
->condition('webform_id', AssessmentInterface::WEBFORM_ID, '!=')
->condition('webform_id', AssessmentInterface::WEBFORM_ID, '<>')
->execute();
if ($this->moduleHandler->moduleExists('webform_submission_log')) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment