Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OLAT CI-CD Testing Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lars Oliver Dam
OLAT CI-CD Testing Project
Commits
095ab03d
Commit
095ab03d
authored
4 years ago
by
User expired
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'upstream/OpenOLAT_15.1' into OpenOLAT_15.1.uibk
parents
3c7502b0
0ecff79f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/olat/course/certificate/ui/report/CertificatesReportController.java
+2
-2
2 additions, 2 deletions
...e/certificate/ui/report/CertificatesReportController.java
with
2 additions
and
2 deletions
src/main/java/org/olat/course/certificate/ui/report/CertificatesReportController.java
+
2
−
2
View file @
095ab03d
...
@@ -191,7 +191,7 @@ public class CertificatesReportController extends FormBasicController {
...
@@ -191,7 +191,7 @@ public class CertificatesReportController extends FormBasicController {
private
void
doReport
(
UserRequest
ureq
,
RepositoryEntry
re
)
{
private
void
doReport
(
UserRequest
ureq
,
RepositoryEntry
re
)
{
String
filename
=
re
.
getDisplayname
()
+
"_Certificates_"
+
Formatter
.
formatDatetimeWithMinutes
(
ureq
.
getRequestTimestamp
());
String
filename
=
re
.
getDisplayname
()
+
"_Certificates_"
+
Formatter
.
formatDatetimeWithMinutes
(
ureq
.
getRequestTimestamp
());
filename
=
StringHelper
.
transformDisplayNameToFileSystemName
(
filename
);
filename
=
StringHelper
.
transformDisplayNameToFileSystemName
(
filename
)
+
".xlsx"
;
List
<
RepositoryEntry
>
entries
=
Collections
.
singletonList
(
re
);
List
<
RepositoryEntry
>
entries
=
Collections
.
singletonList
(
re
);
CertificatesReportParameters
reportParams
=
getReportParameters
();
CertificatesReportParameters
reportParams
=
getReportParameters
();
...
@@ -205,7 +205,7 @@ public class CertificatesReportController extends FormBasicController {
...
@@ -205,7 +205,7 @@ public class CertificatesReportController extends FormBasicController {
showWarning
(
"warning.at.least.one.test"
);
showWarning
(
"warning.at.least.one.test"
);
}
else
{
}
else
{
String
filename
=
"Certificates_"
+
Formatter
.
formatDatetimeWithMinutes
(
ureq
.
getRequestTimestamp
());
String
filename
=
"Certificates_"
+
Formatter
.
formatDatetimeWithMinutes
(
ureq
.
getRequestTimestamp
());
filename
=
StringHelper
.
transformDisplayNameToFileSystemName
(
filename
);
filename
=
StringHelper
.
transformDisplayNameToFileSystemName
(
filename
)
+
".xlsx"
;
CertificatesReportParameters
reportParams
=
getReportParameters
();
CertificatesReportParameters
reportParams
=
getReportParameters
();
MediaResource
report
=
new
CertificatesReportMediaResource
(
filename
,
entries
,
reportParams
,
getTranslator
());
MediaResource
report
=
new
CertificatesReportMediaResource
(
filename
,
entries
,
reportParams
,
getTranslator
());
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment