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
0164085f
Verified
Commit
0164085f
authored
Apr 03, 2019
by
Arnaud Pauget
Browse files
Modify the gritter response on restitution request
parent
c4ae45c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
presentation/maarchRM/Presenter/medona/archiveModification.php
View file @
0164085f
...
...
@@ -71,17 +71,23 @@ class archiveModification
}
else
{
$success
=
count
(
$result
[
'success'
]);
$echec
=
count
(
$result
[
'error'
]);
$this
->
json
->
message
=
''
;
$this
->
json
->
message
=
'%1$s archive(s) flagged for restitution.'
;
$this
->
json
->
message
=
$this
->
translator
->
getText
(
$this
->
json
->
message
);
$this
->
json
->
message
=
sprintf
(
$this
->
json
->
message
,
$success
);
if
(
$success
>
0
)
{
$this
->
json
->
message
=
'%1$s archive(s) flagged for restitution.'
;
$this
->
json
->
message
=
$this
->
translator
->
getText
(
$this
->
json
->
message
);
$this
->
json
->
message
=
sprintf
(
$this
->
json
->
message
,
$success
);
}
if
(
$echec
>
0
)
{
$message
=
'%1$s archive(s) can not be flagged.'
;
if
(
$success
>
0
)
{
$this
->
json
->
message
.
=
'<br>'
;
}
$message
=
'%1$s archive(s) can not be flagged because an action is already in progress on this(these) archive(s) (or on one of its/their objects).'
;
$message
=
$this
->
translator
->
getText
(
$message
);
$message
=
sprintf
(
$message
,
$echec
);
$this
->
json
->
message
.
=
' '
.
$message
;
$this
->
json
->
message
.
=
$message
;
}
}
...
...
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