diff --git a/APPL/API/api_opdrsoap.asp b/APPL/API/api_opdrsoap.asp index e05dacdb1f..0d1ac69ea2 100644 --- a/APPL/API/api_opdrsoap.asp +++ b/APPL/API/api_opdrsoap.asp @@ -464,12 +464,12 @@ for (i=0; i < opdrachten.length; i++) } oRs.Close(); } - if (opdraction == "note") + if (opdraction == "note" && resultcode == -1) // Nog steeds geen fouten. { 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) + ")"; Oracle.Execute(tsql); - resultcode = 0; + resultcode = 0; // we zijn klaar. } } else