++
убирание джсон запакованных полей у баг репортов
This commit is contained in:
@@ -19,7 +19,6 @@ import _VisualDVM.Passes.All.ZipFolderPass;
|
||||
import _VisualDVM.ProjectData.LanguageName;
|
||||
import _VisualDVM.Repository.EmailMessage;
|
||||
import _VisualDVM.Repository.Server.RepositoryServer;
|
||||
import _VisualDVM.TestingSystem.DVM.DVMConfigurationTest.DVMConfigurationTest;
|
||||
import _VisualDVM.Utils;
|
||||
import javafx.util.Pair;
|
||||
import org.apache.commons.io.FileUtils;
|
||||
@@ -67,24 +66,24 @@ public class ComponentsServer extends RepositoryServer<BugReportsDatabase> {
|
||||
}
|
||||
@Override
|
||||
protected void afterPublishAction(DBObject object) throws Exception {
|
||||
if (object instanceof BugReport){
|
||||
if (object instanceof BugReport) {
|
||||
BugReport bugReport = (BugReport) object;
|
||||
if (bugReport.settings!=null){
|
||||
for (BugReportSetting setting: bugReport.settings){
|
||||
setting.bugreport_id=bugReport.id;
|
||||
if (bugReport.settings != null) {
|
||||
for (BugReportSetting setting : bugReport.settings) {
|
||||
setting.bugreport_id = bugReport.id;
|
||||
db.Insert(setting);
|
||||
}
|
||||
}
|
||||
if (bugReport.recipients!=null){
|
||||
if (bugReport.recipients != null) {
|
||||
db.saveBugreportRecipients(bugReport);
|
||||
}
|
||||
}
|
||||
}
|
||||
@Override
|
||||
protected void afterEditAction(DBObject object) throws Exception {
|
||||
if (object instanceof BugReport){
|
||||
if (object instanceof BugReport) {
|
||||
BugReport bugReport = (BugReport) object;
|
||||
if (bugReport.recipients!=null){
|
||||
if (bugReport.recipients != null) {
|
||||
db.bugReportRecipients.ActualizeData(
|
||||
db.getVectorByFK(bugReport, BugReportRecipient.class),
|
||||
bugReport.recipients);
|
||||
@@ -379,9 +378,4 @@ public class ComponentsServer extends RepositoryServer<BugReportsDatabase> {
|
||||
throw new RepositoryRefuseException("Неподдерживаемый код: " + code);
|
||||
}
|
||||
}
|
||||
@Override
|
||||
public void StartAction() throws Exception {
|
||||
super.StartAction();
|
||||
db.Patch();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user