Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
gredu_labs
Commits
d1152c52
Commit
d1152c52
authored
Mar 16, 2016
by
Vassilis Kanellopoulos
Browse files
fix attachment file name
parent
4960c2f3
Changes
2
Hide whitespace changes
Inline
Side-by-side
module/schools/public/js/schools/labs.js
View file @
d1152c52
...
...
@@ -140,7 +140,7 @@
this
.
attachment
.
find
(
'
a
'
).
attr
(
'
href
'
,
'
#
'
);
this
.
attachment
.
hide
();
}
else
{
this
.
attachment
.
find
(
'
.uploaded-label
'
).
html
(
this
.
uploadedLabel
({
filename
:
this
.
lab
.
get
(
'
attachment
'
)}));
this
.
attachment
.
find
(
'
.uploaded-label
'
).
html
(
this
.
uploadedLabel
({
filename
:
this
.
lab
.
get
(
'
attachment
_file
'
)}));
this
.
attachment
.
find
(
'
a
'
).
attr
(
'
href
'
,
this
.
attachment
.
data
(
'
href
'
).
replace
(
'
__lab_id__
'
,
this
.
lab
.
get
(
'
id
'
)));
this
.
attachment
.
show
();
}
...
...
module/schools/src/Service/LabService.php
View file @
d1152c52
...
...
@@ -119,7 +119,7 @@ class LabService implements LabServiceInterface
}
$lab
=
$bean
->
export
();
$lab
[
'attachment'
]
=
basename
(
$lab
[
'attachment'
]);
$lab
[
'attachment
_file
'
]
=
basename
(
$lab
[
'attachment'
]);
return
array_merge
(
$lab
,
[
'labtype'
=>
$bean
->
labtype
->
name
,
...
...
Write
Preview
Markdown
is supported
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