Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Maarch
MaarchCourrier
Commits
29126c4e
Commit
29126c4e
authored
Nov 24, 2021
by
Mathieu
Browse files
FIX #18719 TIME 1:00 made changes to apply the fix only on chrono number
parent
85469623
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/app/resource/controllers/ResController.php
View file @
29126c4e
...
...
@@ -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'
]]);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment