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
2bad70d2
Commit
2bad70d2
authored
6 years ago
by
Frode Petterson
Browse files
Options
Downloads
Patches
Plain Diff
Fix coding error
parent
2787a45d
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
mod_form.php
+1
-2
1 addition, 2 deletions
mod_form.php
with
1 addition
and
2 deletions
mod_form.php
+
1
−
2
View file @
2bad70d2
...
@@ -370,8 +370,7 @@ class mod_hvp_mod_form extends moodleform_mod {
...
@@ -370,8 +370,7 @@ class mod_hvp_mod_form extends moodleform_mod {
// Fix for legacy content upload to work.
// Fix for legacy content upload to work.
// Fetch title from h5p.json or use a default string if not available.
// Fetch title from h5p.json or use a default string if not available.
$h5pvalidator
=
\mod_hvp\framework
::
instance
(
'validator'
);
$h5pvalidator
=
\mod_hvp\framework
::
instance
(
'validator'
);
$data
->
metadata
->
title
=
empty
(
$h5pvalidator
->
h5pC
->
mainJsonData
[
'title'
])
?
$data
->
metadata
->
title
=
empty
(
$h5pvalidator
->
h5pC
->
mainJsonData
[
'title'
])
?
'Uploaded Content'
:
$h5pvalidator
->
h5pC
->
mainJsonData
[
'title'
];
'Uploaded Content'
:
$h5pvalidator
->
h5pC
->
mainJsonData
[
'title'
];
}
}
$data
->
name
=
$data
->
metadata
->
title
;
// Sort of a hack,
$data
->
name
=
$data
->
metadata
->
title
;
// Sort of a hack,
// but there is no JavaScript that sets the value when there is no editor...
// 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