Skip to content

Commit

Permalink
Disable selection of inactive TestPlan on New Test Run page
Browse files Browse the repository at this point in the history
Fixes #3152

NOTE: for now it is still possible to create a TR for an inactive TP
using the /runs/from-plan/<id>/?c=7 URL.

There is a larger question if we should allow any actions with a TP/TR
once it has reached a 'finalized' state. See #779 for more context.
  • Loading branch information
atodorov committed Apr 16, 2023
1 parent ac462a3 commit f9b5e0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tcms/testruns/static/testruns/js/mutable.js
Expand Up @@ -8,7 +8,7 @@ export function pageTestrunsMutableReadyHandler () {

document.getElementById('id_product').onchange = () => {
$('#id_product').selectpicker('refresh')
updateTestPlanSelectFromProduct()
updateTestPlanSelectFromProduct({ is_active: true })
}

document.getElementById('id_test_plan').onchange = () => {
Expand Down

0 comments on commit f9b5e0d

Please sign in to comment.