diff --git a/tcms/static/js/testcase_actions.js b/tcms/static/js/testcase_actions.js index e5bb63ca65..6792644680 100644 --- a/tcms/static/js/testcase_actions.js +++ b/tcms/static/js/testcase_actions.js @@ -162,10 +162,6 @@ Nitrate.TestCases.Edit.on_load = function() { }; Nitrate.TestCases.Clone.on_load = function() { - $('#id_product').change(update_version_select_from_product); - if (!$('#id_version').val().length) { - update_version_select_from_product(); - } jQ('#id_form_search_plan').bind('submit', function(e) { e.stopPropagation(); @@ -206,6 +202,10 @@ Nitrate.TestCases.Clone.on_load = function() { window.history.go('-1'); }); + $('#id_product').change(update_version_select_from_product); + if (!$('#id_version').val().length) { + update_version_select_from_product(); + } };