Added extra check to upgrade script
parent
4c389c89e3
commit
9d8a35f807
|
@ -28,6 +28,7 @@ H5PUpgrades['H5P.QuestionSet'] = (function ($) {
|
||||||
*/
|
*/
|
||||||
8: function (parameters, finished) {
|
8: function (parameters, finished) {
|
||||||
|
|
||||||
|
if (parameters.override) {
|
||||||
if (parameters.override.overrideButtons) {
|
if (parameters.override.overrideButtons) {
|
||||||
// Set new variables
|
// Set new variables
|
||||||
parameters.override.showSolutionButton =
|
parameters.override.showSolutionButton =
|
||||||
|
@ -40,6 +41,7 @@ H5PUpgrades['H5P.QuestionSet'] = (function ($) {
|
||||||
delete parameters.override.overrideButtons;
|
delete parameters.override.overrideButtons;
|
||||||
delete parameters.override.overrideShowSolutionButton;
|
delete parameters.override.overrideShowSolutionButton;
|
||||||
delete parameters.override.overrideRetry;
|
delete parameters.override.overrideRetry;
|
||||||
|
}
|
||||||
|
|
||||||
// Move copyright dialog question label
|
// Move copyright dialog question label
|
||||||
if (parameters.questionLabel) {
|
if (parameters.questionLabel) {
|
||||||
|
|
Loading…
Reference in New Issue