You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/org/ecocean/servlet/MergeIndividual.java
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response)
43
43
"<strong>Error:</strong> Missing two valid individualIDs for MergeIndividual. ";
44
44
if (id1 == null) msg += "<br>Bad id1: " + id1;
45
45
if (id2 == null) msg += "<br>Bad id2: " + id2;
46
-
errorAndClose(msg, response);
46
+
errorAndClose(msg, response,out);
47
47
return;
48
48
}
49
49
StringoldName1;
@@ -64,7 +64,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response)
64
64
"<strong>Error:</strong> Could not find both individuals in our database. ";
65
65
if (mark1 == null) msg += "<br>could not find individual " + mark1;
66
66
if (mark2 == null) msg += "<br>could not find individual " + mark2;
67
-
errorAndClose(msg, response);
67
+
errorAndClose(msg, response,out);
68
68
myShepherd.rollbackDBTransaction();
69
69
myShepherd.closeDBTransaction();
70
70
return;
@@ -165,7 +165,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response)
165
165
}
166
166
} catch (Exceptionle) {
167
167
le.printStackTrace();
168
-
errorAndClose("An exception occurred. Please contact the admins.", response);
168
+
errorAndClose("An exception occurred. Please contact the admins.", response, out);
169
169
myShepherd.rollbackDBTransaction();
170
170
myShepherd.closeDBTransaction();
171
171
return;
@@ -194,11 +194,11 @@ public void doPost(HttpServletRequest request, HttpServletResponse response)
194
194
} else {
195
195
errorAndClose(
196
196
"<strong>Failure!</strong> This encounter is currently being modified by another user, or an exception occurred. Please wait a few seconds before trying to modify this encounter again.",
0 commit comments