Commit 15f2a6f8 authored by Guillaume Heurtier's avatar Guillaume Heurtier
Browse files

FIX #17812 TIME 0:05 get delegating user label in give opinion check

parent 134c91e2
......@@ -1436,7 +1436,11 @@ class PreProcessActionController
$resourcesInformation['error'][] = ['alt_identifier' => $resource['alt_identifier'], 'res_id' => $resId, 'reason' => 'userNotInDiffusionList'];
} else {
$userInfo = UserModel::getLabelledUserById(['id' => $opinionNote[0]['user_id']]);
$resourcesInformation['success'][] = ['alt_identifier' => $resource['alt_identifier'], 'res_id' => $resId, 'avisUserAsk' => $userInfo, 'note' => $opinionNote[0]['note_text'], 'opinionLimitDate' => $resource['opinion_limit_date']];
$delegatingUser = null;
if ($args['userId'] != $GLOBALS['id']) {
$delegatingUser = UserModel::getLabelledUserById(['id' => $args['userId']]);
}
$resourcesInformation['success'][] = ['alt_identifier' => $resource['alt_identifier'], 'res_id' => $resId, 'avisUserAsk' => $userInfo, 'note' => $opinionNote[0]['note_text'], 'opinionLimitDate' => $resource['opinion_limit_date'], 'delegatingUser' => $delegatingUser];
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment