From 3b84e80472a57ef38a5bd642a2a257b802bdd2e7 Mon Sep 17 00:00:00 2001 From: Alex Tiehuis Date: Wed, 26 Sep 2018 11:48:21 +0000 Subject: [PATCH] FCLT#54738 AiAi ARAI bij upload mobiele opdracht bijlage svn path=/Website/branches/v2018.1/; revision=39213 --- APPL/API2/model_custom_fields.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/APPL/API2/model_custom_fields.inc b/APPL/API2/model_custom_fields.inc index 7913181fca..a2b221f0bb 100644 --- a/APPL/API2/model_custom_fields.inc +++ b/APPL/API2/model_custom_fields.inc @@ -223,10 +223,10 @@ function model_custom_fields(formodel, flexModel, flexParams) if (typ != "M" && parent_key > 0) { - var sql = "BEGIN flx.setflex({0}".format(safe.quoted_sql(this.module)) + var sql = "BEGIN flx.setflex({0}".format(this.module == "MLD" && flexParams.pNiveau == "O" ? "'OPD'" : safe.quoted_sql(this.module)) + " , {0}".format(the_key) // == jsondata.propertyid + " , {0}".format(parent_key) - + " , {0}".format(safe.quoted_sql(flexParams.pNiveau)) + + " , {0}".format(this.module == "MLD" && flexParams.pNiveau == "O" ? "NULL" : safe.quoted_sql(flexParams.pNiveau)) + " , {0});".format(safe.quoted_sql(jsondata.value)) + "END;" var err = Oracle.Execute(sql, true);