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
bd84f847
Commit
bd84f847
authored
Oct 04, 2017
by
Cyril Vazquez
Browse files
FIX: init variables for merge outside the condition on deposit privilege
parent
3809bd82
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/presentation/maarchRM/Presenter/recordsManagement/welcome.php
View file @
bd84f847
...
...
@@ -151,8 +151,6 @@ class welcome
{
$this
->
view
->
addContentFile
(
'dashboard/mainScreen/archiveInformation.html'
);
$acceptUserIndex
=
true
;
// Archive
$originatorOrg
=
\
laabs
::
callService
(
'organization/organization/readByregnumber'
,
$archive
->
originatorOrgRegNumber
);
$archive
->
originatorOrgName
=
$originatorOrg
->
displayName
;
...
...
@@ -168,13 +166,12 @@ class welcome
$retentionRules
[
$i
]
->
durationText
=
(
string
)
$retentionRules
[
$i
]
->
duration
;
}
$archivalProfileList
=
[];
$acceptArchiveWithoutProfile
=
$acceptUserIndex
=
false
;
// Add a sub archive
$depositPrivilege
=
\
laabs
::
callService
(
'auth/userAccount/readHasprivilege'
,
"archiveDeposit/deposit"
);
if
(
$depositPrivilege
)
{
$acceptArchiveWithoutProfile
=
true
;
$archivalProfileList
=
[];
if
(
!
empty
(
$archive
->
archivalProfileReference
))
{
$archivalProfile
=
\
laabs
::
callService
(
'recordsManagement/archivalProfile/readByreference_reference_'
,
$archive
->
archivalProfileReference
);
$archive
->
archivalProfileName
=
$archivalProfile
->
name
;
...
...
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