Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle_mod-hvp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle_mod-hvp
Commits
1bf21168
Commit
1bf21168
authored
6 years ago
by
Thomas Marstrander
Browse files
Options
Downloads
Patches
Plain Diff
Update submodules and fix linting error
parent
9b445278
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
editor
+1
-1
1 addition, 1 deletion
editor
library
+1
-1
1 addition, 1 deletion
library
mod_form.php
+1
-3
1 addition, 3 deletions
mod_form.php
with
3 additions
and
5 deletions
editor
@
b87c9b80
Compare
6364550f
...
b87c9b80
Subproject commit
6364550f23f73584140e591bd2cfcf47d18b5
27
a
Subproject commit
b87c9b8083f85b97adf2cb2d9cb83e1a959dc
27
3
This diff is collapsed.
Click to expand it.
library
@
7ee0c337
Compare
415e1010
...
7ee0c337
Subproject commit
415e1010646df7a99a9ed1cddcf009e8beb48a29
Subproject commit
7ee0c3372b939ecabb23c40fd99f81c46f971333
This diff is collapsed.
Click to expand it.
mod_form.php
+
1
−
3
View file @
1bf21168
...
...
@@ -370,9 +370,7 @@ class mod_hvp_mod_form extends moodleform_mod {
// Fix for legacy content upload to work.
// Fetch title from h5p.json or use a default string if not available.
$h5pvalidator
=
\mod_hvp\framework
::
instance
(
'validator'
);
$data
->
metadata
->
title
=
empty
(
$h5pvalidator
->
h5pC
->
mainJsonData
[
'title'
])
?
'Uploaded Content'
:
$h5pvalidator
->
h5pC
->
mainJsonData
[
'title'
];
$data
->
metadata
->
title
=
empty
(
$h5pvalidator
->
h5pC
->
mainJsonData
[
'title'
])
?
'Uploaded Content'
:
$h5pvalidator
->
h5pC
->
mainJsonData
[
'title'
];
}
$data
->
name
=
$data
->
metadata
->
title
;
// Sort of a hack,
// but there is no JavaScript that sets the value when there is no editor...
...
...
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