diff --git a/tcms/testplans/static/testplans/js/get.js b/tcms/testplans/static/testplans/js/get.js index 7061bc1e45..9bee750c54 100644 --- a/tcms/testplans/static/testplans/js/get.js +++ b/tcms/testplans/static/testplans/js/get.js @@ -707,7 +707,7 @@ function filterTestCasesByProperty (planId, testCases, filterBy, filterValue) { }) } else { testCases.filter(function (tc) { - return (tc[filterBy] && tc[filterBy].toString().toLowerCase().indexOf(filterValue) > -1) + return (tc[filterBy] !== undefined && tc[filterBy].toString().toLowerCase().indexOf(filterValue) > -1) }).forEach(tc => $(`[data-testcase-pk=${tc.id}]`).show()) } }