fix: fields in inspection query (#17224)

This commit is contained in:
Teddy 2024-07-31 10:41:26 +02:00 committed by GitHub
parent 7d519e180e
commit fd2b4ec4ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -798,7 +798,7 @@ public class TestCaseRepository extends EntityRepository<TestCase> {
@Transaction
public TestCase addInspectionQuery(UriInfo uri, UUID testCaseId, String sql) {
TestCase original = get(uri, testCaseId, getFields(PATCH_FIELDS));
TestCase original = get(uri, testCaseId, getFields("*"));
TestCase updated =
JsonUtils.readValue(JsonUtils.pojoToJson(original), TestCase.class)
.withInspectionQuery(sql);