FCLT#57244 Javascript error toevoegen kenmerk (20191) - sgmld_issuetype is not defined

svn path=/Website/branches/v2019.1/; revision=41929
This commit is contained in:
Alex Tiehuis
2019-04-03 14:12:06 +00:00
parent eace0e4df5
commit 2a16b0fd0f

View File

@@ -66,8 +66,11 @@ function change_discipline()
}
if (disc_key > 0)
{
sgmld_issuetype.setValue(-1, "");
sgmld_issuetype.CheckJustOne();
if (typeof sgmld_issuetype != "undefined")
{
sgmld_issuetype.setValue(-1, "");
sgmld_issuetype.CheckJustOne();
}
$.getJSON("../mld/get_mld_info_ajax.asp",
{ req_info: "mld_discipline",
mld_ins_discipline_key: disc_key,
@@ -104,6 +107,9 @@ function change_mld_issuetype()
function process_stdm_info(data, textStatus)
{
// only if disc suggest is present
if (typeof sgdiscipline != "undefined")
{
// Zet de discipline indien niet ingevuld
var d_disc_key = data.ins_discipline_key;
var f_disc_key = $("#discipline").val();
@@ -117,4 +123,5 @@ function process_stdm_info(data, textStatus)
, false /*checkExist*/
);
}
}
}