From b9665def717bb87c513e1ac325c725dd6d0f1ff8 Mon Sep 17 00:00:00 2001 From: Wild Me Date: Fri, 19 Dec 2025 08:50:33 -0800 Subject: [PATCH] Fix null names issue on no match Fix null names issue on no match from issue 1260 --- src/main/webapp/iaResults.jsp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/webapp/iaResults.jsp b/src/main/webapp/iaResults.jsp index cc1fd126b9..42034865c4 100755 --- a/src/main/webapp/iaResults.jsp +++ b/src/main/webapp/iaResults.jsp @@ -1894,20 +1894,20 @@ function negativeButtonClick(encId, oldDisplayName) { dataType: 'json', complete: function(d) { console.log("RTN from negativeButtonClick : "+JSON.stringify(d)); - updateNameCallback(d, oldDisplayName, encId); + updateNameCallback(d, oldDisplayName, encId, nextName); } }) } } -function updateNameCallback(d, oldDisplayName, encId) { +function updateNameCallback(d, oldDisplayName, encId, assignedName) { console.log("Update name callback! got d="+d+" and stringify = "+JSON.stringify(d)); let alertMsg = "Something went wrong with assigning the new name to the individual containing encounter " + encDisplayString(encId); if(d && d.responseJSON && d.responseJSON.success){ if(oldDisplayName!=="undefined" && oldDisplayName){ - alertMsg = "Success! Added name <%=nextNameKey%>: <%=nextName%> to "+oldDisplayName; + alertMsg = "Success! Added name " + assignedName + " to "+oldDisplayName; } else{ - alertMsg = "Success! Added name <%=nextNameKey%>: <%=nextName%> to the new individual."; + alertMsg = "Success! Added name " + assignedName + " to the new individual."; } }