Skip to content

Commit 06e2eae

Browse files
committed
#5393: Do not run on draft submissions
1 parent 96b8f36 commit 06e2eae

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ about writing changes to this log.
88

99
## [Unreleased]
1010

11+
## [2.0.1] 08.09.2025
12+
13+
* Only attempt archiving when submission is completed.
14+
1115
## [2.0.0] - 2025-05-02
1216

1317
* [PR-14](https://github.com/OS2Forms/os2forms_get_organized/pull/14)
@@ -68,7 +72,8 @@ about writing changes to this log.
6872

6973
## [1.0.0] 29.03.2023
7074

71-
[Unreleased]: https://github.com/OS2Forms/os2forms_get_organized/compare/2.0.0...HEAD
75+
[Unreleased]: https://github.com/OS2Forms/os2forms_get_organized/compare/2.0.1...HEAD
76+
[2.0.1]: https://github.com/OS2Forms/os2forms_get_organized/compare/2.0.0...2.0.1
7277
[2.0.0]: https://github.com/OS2Forms/os2forms_get_organized/compare/1.4.1...2.0.0
7378
[1.4.1]: https://github.com/OS2Forms/os2forms_get_organized/compare/1.4.0...1.4.1
7479
[1.4.0]: https://github.com/OS2Forms/os2forms_get_organized/compare/1.3.1...1.4.0

src/Plugin/WebformHandler/GetOrganizedWebformHandler.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,11 @@ public function validateConfigurationForm(array &$form, FormStateInterface $form
264264
* {@inheritdoc}
265265
*/
266266
public function postSave(WebformSubmissionInterface $webform_submission, $update = TRUE): void {
267+
// Ignore anything that is not completed.
268+
if (!$webform_submission->isCompleted()) {
269+
return;
270+
}
271+
267272
$queueStorage = $this->entityTypeManager->getStorage('advancedqueue_queue');
268273
/** @var \Drupal\advancedqueue\Entity\Queue $queue */
269274
$queue = $queueStorage->load('get_organized_queue');

0 commit comments

Comments
 (0)