diff --git a/module/todo/js/common.js b/module/todo/js/common.js index c1cd87d92c..3ff342953c 100644 --- a/module/todo/js/common.js +++ b/module/todo/js/common.js @@ -50,9 +50,12 @@ function loadList(type, id) $(divClass).html($(divID).html()); } + + nameBoxLabel = typeof(nameBoxLabel) == "undefined" ? '' : nameBoxLabel; if(nameBoxLabel) { - if(type == 'custom') + vision = typeof(vision) == "undefined" ? '' : vision; + if(type == 'custom' || (vision && vision == 'rnd')) { $('#nameBoxLabel').text(nameBoxLabel.custom); } diff --git a/module/todo/view/create.html.php b/module/todo/view/create.html.php index c7d6e4d4d4..26e62d13aa 100644 --- a/module/todo/view/create.html.php +++ b/module/todo/view/create.html.php @@ -17,6 +17,7 @@ todo->moduleList)?> todo->getUserObjectsMethod)?> $lang->todo->name, 'idvalue' => $lang->todo->idvalue));?> +vision);?>