diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index af68d3fc..63080fb4 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -9,12 +9,7 @@
-
-
-
-
-
diff --git a/properties b/properties
index 593e8746..a87be371 100644
--- a/properties
+++ b/properties
@@ -4,7 +4,7 @@
"ServerUserPassword": "mprit_2011",
"OfferRegistrationOnStart": true,
"Workspace": "E:\\Tests",
- "ProjectsSearchDirectory": "E:\\Tests\\test_c",
+ "ProjectsSearchDirectory": "E:\\BUG\\JAC\\p1",
"DocumentsDirectory": "C:\\Users\\misha\\Documents\\_testing_system",
"VisualiserPath": "C:\\Users\\misha\\Downloads",
"Sapfor_FPath": "E:\\_sapfor_x64\\Components\\Sapfor_F",
diff --git a/src/_VisualDVM/TestingSystem/Common/TestingServer.java b/src/_VisualDVM/TestingSystem/Common/TestingServer.java
index e7dddb2b..5a02e9f7 100644
--- a/src/_VisualDVM/TestingSystem/Common/TestingServer.java
+++ b/src/_VisualDVM/TestingSystem/Common/TestingServer.java
@@ -472,9 +472,13 @@ public class TestingServer extends RepositoryServer {
"Не удалось прикрепить проект к тесту с id " + test.id
+ "\nТест будет удален"
);
- } else db.Update(test); //обновить список файлов и размерность.
+ } else {
+ db.Update(test);
+ db.DetectTestMinMaxDim(db.serverSapfors.getLastDoneVersion(), db.groups.get(test.group_id), test);
+ }
}
void ReplaceTestsCodes() throws Exception {
+ ServerSapfor serverSapfor = db.serverSapfors.getLastDoneVersion();
Vector tests = (Vector) request.object;
for (Test test : tests) {
if (!test.unpackProjectOnServer()) {
@@ -483,7 +487,10 @@ public class TestingServer extends RepositoryServer {
"Не удалось прикрепить проект к тесту с id " + test.id
+ "\nТест будет удален"
);
- } else db.Update(test); //обновить список файлов и размерность.
+ } else {
+ db.Update(test);
+ db.DetectTestMinMaxDim(serverSapfor, db.groups.get(test.group_id), test);
+ }
}
}
void GetServerName() throws Exception {