diff --git a/APPL/API/api_opdrsoap.asp b/APPL/API/api_opdrsoap.asp index 49c4c8ad60..7d527051eb 100644 --- a/APPL/API/api_opdrsoap.asp +++ b/APPL/API/api_opdrsoap.asp @@ -464,7 +464,7 @@ for (i=0; i < opdrachten.length; i++) } oRs.Close(); } - if (opdraction == "note") + if (resultcode == -1 && opdraction == "note") { tsql = "INSERT INTO mld_opdr_note(mld_opdr_key, prs_perslid_key, mld_opdr_note_omschrijving)" + " VALUES (" + opdr_key + "," + user_key + "," + safe.quoted_sql(opdropmerking) + ")";