From a9c58fb682913662bf700685803fa6e76faea866 Mon Sep 17 00:00:00 2001 From: Jayavel Date: Tue, 1 Feb 2022 22:30:57 +0530 Subject: [PATCH] Fix - Element update not reflected addon steps --- .../main/java/com/testsigma/repository/TestStepRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/com/testsigma/repository/TestStepRepository.java b/server/src/main/java/com/testsigma/repository/TestStepRepository.java index e6993461..0a80e8e2 100644 --- a/server/src/main/java/com/testsigma/repository/TestStepRepository.java +++ b/server/src/main/java/com/testsigma/repository/TestStepRepository.java @@ -75,7 +75,7 @@ void updateElementName(@Param("newName") String newName, @Param("oldName") String oldName); @Query(value = "select * from test_steps where addon_action_id is not null\n" + - "and JSON_SEARCH(JSON_EXTRACT(addon_natural_text_action_data , '$.\"elements\".*.*'), 'all', :oldName) is not null;\n", nativeQuery = true) + "and JSON_SEARCH(JSON_EXTRACT(kibbutz_elements , '$.*.\"name\"'), 'all', :oldName) is not null;\n", nativeQuery = true) List findKibbutzElementsByName(@Param("oldName") String oldName); @Query(value = "select step.* from test_steps step where step.for_loop_start_index is null and step.parent_id is null and test_case_id in (select id from test_cases where test_data_id=:testDataId) and (condition_type is not null and condition_type > 0)", nativeQuery = true)