Skip to content

Commit 3f7e3d9

Browse files
committed
fixed: daily expert notification no longer contains new closed items
It was possible to have an item in the workload notification which was added the day before, but also already closed. This shouldn't show up in the notification.
1 parent dc62d02 commit 3f7e3d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

classes/ColdTrick/Questions/Cron.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,10 @@ public static function notifyQuestionExperts($hook, $type, $returnvalue, $params
203203
unset($question_options['metadata_name_value_pairs']);
204204
unset($question_options['order_by_metadata']);
205205
$question_options['wheres'] = [
206+
$status_where,
206207
$container_where,
207208
];
208-
$question_options['created_after'] = ($time - (24 * 60 *60));
209+
$question_options['created_after'] = ($time - (24 * 60 * 60));
209210

210211
$questions = elgg_get_entities($question_options);
211212
if (!empty($questions)) {

0 commit comments

Comments
 (0)