From bd75abba8d594c9ea556fdf1b8da5e7b12524464 Mon Sep 17 00:00:00 2001 From: Jos Groot Lipman Date: Mon, 19 Feb 2018 08:42:51 +0000 Subject: [PATCH] FSN#52281 AiAi bij aanroep api_opdrsoap met notitie als opdracht niet te bepalen svn path=/Website/trunk/; revision=37034 --- APPL/API/api_opdrsoap.asp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) + ")";