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
207fbf80
Commit
207fbf80
authored
Oct 02, 2017
by
Prosper De Laure
Browse files
Can't modify an archive metadata when a description class is used
parent
cae7f018
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/presentation/maarchRM/Presenter/recordsManagement/welcome.php
View file @
207fbf80
...
...
@@ -220,7 +220,6 @@ class welcome
$this
->
view
->
setSource
(
"acceptArchiveWithoutProfile"
,
$acceptArchiveWithoutProfile
);
$this
->
view
->
setSource
(
"acceptUserIndex"
,
$acceptUserIndex
);
$this
->
view
->
setSource
(
'managementPrivilege'
,
\
laabs
::
callService
(
'auth/userAccount/readHasprivilege'
,
"archiveManagement/modify"
));
$this
->
view
->
setSource
(
'modificationPrivilege'
,
\
laabs
::
callService
(
'auth/userAccount/readHasprivilege'
,
"archiveManagement/modifyDescription"
));
$this
->
view
->
merge
();
...
...
@@ -336,6 +335,8 @@ class welcome
protected
function
getDescription
(
$archive
)
{
$archivalProfile
=
null
;
$modificationPrivilege
=
\
laabs
::
callService
(
'auth/userAccount/readHasprivilege'
,
"archiveManagement/modifyDescription"
);
if
(
!
empty
(
$archive
->
archivalProfileReference
))
{
$archivalProfile
=
\
laabs
::
callService
(
'recordsManagement/archivalProfile/readByreference_reference_'
,
$archive
->
archivalProfileReference
);
...
...
@@ -345,6 +346,7 @@ class welcome
if
(
!
empty
(
$archive
->
descriptionClass
))
{
$presenter
=
\
laabs
::
newPresenter
(
$archive
->
descriptionClass
);
$descriptionHtml
=
$presenter
->
read
(
$archive
->
descriptionObject
);
$modificationPrivilege
=
false
;
}
else
{
$descriptionHtml
=
'<table">'
;
...
...
@@ -411,6 +413,8 @@ class welcome
}
else
{
unset
(
$archive
->
descriptionObject
);
}
$this
->
view
->
setSource
(
'modificationPrivilege'
,
$modificationPrivilege
);
}
/**
...
...
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