Skip to content

Commit

Permalink
Fixed regression on dependency add from testcase header modal.
Browse files Browse the repository at this point in the history
  • Loading branch information
vertigo17 committed Jul 14, 2024
1 parent 32f3dcf commit c205f64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public List<TestCaseDep> readByTestAndTestCase(List<TestCase> testcases) throws
public void create(TestCaseDep testcaseDependency) throws CerberusException {
String query = "INSERT INTO `testcasedep`"
+ "(`Test`, `Testcase`, `Type`, `DependencyTest`, `DependencyTestcase`, `DependencyTCDelay`, `DependencyEvent`, `isActive`, `Description`, `UsrCreated`, `DateCreated`, `UsrModif`, `DateModif` )"
+ "VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";
+ "VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";

RequestDbUtils.executeUpdate(databaseSpring, query,
preparedStatement -> this.setRequestData(preparedStatement, testcaseDependency, false)
Expand Down
2 changes: 1 addition & 1 deletion source/src/main/webapp/js/transversalobject/TestCase.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ function addHtmlForDependencyLine(id, test, testCase, testCaseTxt, activate, des
}

function getHtmlIdForTestCase(test, testCase) {
return (test + '-' + testCase).replace(/ /g, '_').replace(/\./g, '_').replace(/\:/g, '_').replace(/\)/g, '_').replace(/\(/g, '_');
return (test + '-' + testCase).replace(/ /g, '_').replace(/\./g, '_').replace(/\:/g, '_').replace(/\)/g, '_').replace(/\(/g, '_').replace(/\//g, '_');
}

function removeTestCaseDependency(test, testCase) {
Expand Down

0 comments on commit c205f64

Please sign in to comment.