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
maarchRM
Commits
a60bf6bf
Commit
a60bf6bf
authored
Nov 05, 2021
by
Charlotte Bataille
Browse files
feat/18079 : prevent the update for disabled org
parent
3b0bedf4
Pipeline
#14340
failed with stages
in 58 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/bundle/recordsManagement/Controller/archiveModificationTrait.php
View file @
a60bf6bf
...
...
@@ -989,6 +989,12 @@ trait archiveModificationTrait
$currentOwnerOrgId
=
$archive
->
originatorOwnerOrgId
;
$newOriginatorOrg
=
$this
->
sdoFactory
->
read
(
'organization/organization'
,
$orgId
);
if
(
$newOriginatorOrg
->
enabled
==
false
)
{
throw
new
\
bundle\recordsManagement\Exception\organizationException
(
"This organization is disabled."
);
}
if
(
$currentOwnerOrgId
==
$newOriginatorOrg
->
ownerOrgId
)
{
$archive
->
originatorOrgRegNumber
=
$newOriginatorOrg
->
registrationNumber
;
$archive
->
lastModificationDate
=
\
laabs
::
newTimestamp
();
...
...
src/presentation/maarchRM/Resources/locale/fr/exceptions/messages.po
View file @
a60bf6bf
...
...
@@ -266,6 +266,9 @@ msgstr "Une archive n'ayant pas le statut 'Conservée' ne peut pas être modifi
msgid "The new originator organization of the archive must have the same owner organization as the current one."
msgstr "Le nouveau service producteur de l'archive doit avoir la même organisation racine que le service producteur actuel."
msgid "This organization is disabled."
msgstr "Ce service est inactif."
msgid "An action is already in progress on this archive."
msgstr "Une action est déjà en cours sur cette archive."
...
...
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