Skip to content

Commit 8bdf0ba

Browse files
committed
Applied Maestro And task patch
1 parent 03b9097 commit 8bdf0ba

File tree

4 files changed

+49
-4
lines changed

4 files changed

+49
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ Nedenfor ses dato for release og beskrivelse af opgaver som er implementeret.
99
* Opdaterede installationsguide.
1010
* Applied Maestro notification patch
1111
(<https://github.com/itk-dev/os2forms_selvbetjening/pull/270>)
12+
* Applied Maestro And task patch
13+
(<https://github.com/itk-dev/os2forms_selvbetjening/pull/275>)
1214

1315
## [2.7.3] 2024-01-16
1416

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@
144144
"Change check for node form": "patches/drupal/permissions_by_term/changeNodeCheck.patch"
145145
},
146146
"drupal/maestro": {
147-
"Fix check for task notifications": "patches/drupal/maestro/maestro_notification.patch"
147+
"Fix check for task notifications": "patches/drupal/maestro/maestro_notification.patch",
148+
"Fix task pointers query": "patches/drupal/maestro/and-task.patch"
148149
}
149150
},
150151
"patches-ignore": {

composer.lock

Lines changed: 26 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
diff --git a/src/Plugin/EngineTasks/MaestroAndTask.php b/src/Plugin/EngineTasks/MaestroAndTask.php
2+
index 2d27bbe..bbdc5ff 100644
3+
--- a/src/Plugin/EngineTasks/MaestroAndTask.php
4+
+++ b/src/Plugin/EngineTasks/MaestroAndTask.php
5+
@@ -94,12 +94,10 @@ class MaestroAndTask extends PluginBase implements MaestroEngineTaskInterface {
6+
->condition('archived', '2', '!=')
7+
->condition('process_id', $this->processID);
8+
9+
- $orConditionGroup = $query->orConditionGroup();
10+
- foreach ($pointers as $taskID) {
11+
- $orConditionGroup->condition('task_id', $taskID);
12+
+ if (!empty($pointers)) {
13+
+ $andMainConditions->condition('task_id', $pointers, 'IN');
14+
}
15+
16+
- $andMainConditions->condition($orConditionGroup);
17+
$query->condition($andMainConditions);
18+
19+
$queueIdCount = $query->count()->execute();

0 commit comments

Comments
 (0)