Commit 29126c4e authored by Mathieu's avatar Mathieu
Browse files

FIX #18719 TIME 1:00 made changes to apply the fix only on chrono number

parent 85469623
......@@ -396,8 +396,8 @@ class ResController extends ResourceControlController
$identifiers = !empty($data['chrono']) ? $data['chrono'] : $data['resId'];
foreach ($identifiers as $id) {
$id = trim($id);
if (!empty($data['chrono'])) {
$id = trim($id);
$document = ResModel::getByAltIdentifier(['altIdentifier' => $id, 'select' => ['res_id']]);
} else {
$document = ResModel::getById(['resId' => $id, 'select' => ['res_id']]);
......
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