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
thirdPartyArchiving
Commits
e3e4bbe8
Commit
e3e4bbe8
authored
Nov 29, 2017
by
Alexandre Morin
Browse files
Feat final status detail
parent
3428435e
Changes
2
Hide whitespace changes
Inline
Side-by-side
bundle/medona/Controller/ArchiveRestitution.php
View file @
e3e4bbe8
...
...
@@ -387,7 +387,7 @@ class ArchiveRestitution extends abstractMessage
$requestMessage
->
unitIdentifier
=
$this
->
sdoFactory
->
readChildren
(
'medona/unitIdentifier'
,
$requestMessage
);
foreach
(
$requestMessage
->
unitIdentifier
as
$unitIdentifier
)
{
$this
->
archiveController
->
setStatus
(
$unitIdentifier
->
objectId
,
'
dispos
ed'
);
$this
->
archiveController
->
setStatus
(
$unitIdentifier
->
objectId
,
'
restitut
ed'
);
}
$this
->
changeStatus
(
$messageId
,
"validated"
);
...
...
bundle/medona/Controller/ArchiveRestitutionRequest.php
View file @
e3e4bbe8
...
...
@@ -435,8 +435,9 @@ class ArchiveRestitutionRequest extends abstractMessage
$removedArchiveIds
=
[];
foreach
(
$restitutionRequest
->
unitIdentifier
as
$unitIdentifier
)
{
$archive
=
$this
->
archiveController
->
destruct
(
$unitIdentifier
->
objectId
);
$removedArchiveIds
[]
=
(
string
)
$archive
[
"success"
][
0
]
->
archiveId
;
if
(
count
(
$archive
[
"success"
])
>
0
)
{
$removedArchiveIds
[]
=
(
string
)
$archive
[
"success"
][
0
]
->
archiveId
;
}
}
return
$removedArchiveIds
;
...
...
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