Skip to content

Commit

Permalink
BUGFIX also check for name = undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
goltz committed Sep 26, 2019
1 parent 01226a3 commit 5687524
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion amd/build/mod_form.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion amd/src/mod_form.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ define(['jquery', 'core/templates', 'core/modal_factory', 'auth_mumie/mumie_serv
return {
init: function (contextid) {

var isEdit = nameElem.getAttribute('value') !== null && nameElem.getAttribute("value").length > 0;
var isEdit = nameElem.getAttribute('value');

if (isEdit && !serverConfigExists()) {
require(['core/str', "core/notification"], function (str, notification) {
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

defined('MOODLE_INTERNAL') || die;

$plugin->version = 2019092600; // The current module version (Date: YYYYMMDDXX).
$plugin->version = 2019092601; // The current module version (Date: YYYYMMDDXX).
$plugin->component = 'mod_mumie'; // Full name of the plugin (used for diagnostics).
$plugin->requires = 2015041700;
$plugin->release = "v1.1";
Expand Down

0 comments on commit 5687524

Please sign in to comment.