From f166768b353a40f353da18fb6910eb751e68e57c Mon Sep 17 00:00:00 2001 From: Jos Groot Lipman Date: Wed, 9 Dec 2015 15:40:10 +0000 Subject: [PATCH] FSN#34495 api_notes &module=MLD parameter ondersteunen (effectief zelfs verplicht) svn path=/Website/trunk/; revision=27376 --- APPL/API2/api_notes.asp | 2 +- APPL/API2/model_notes.inc | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/APPL/API2/api_notes.asp b/APPL/API2/api_notes.asp index 3a5210ffc7..775eae51f9 100644 --- a/APPL/API2/api_notes.asp +++ b/APPL/API2/api_notes.asp @@ -21,5 +21,5 @@ <% - api2_rest.process(model_notes); + api2_rest.process(new model_notes(getQParam("module", "").toUpperCase())); %> \ No newline at end of file diff --git a/APPL/API2/model_notes.inc b/APPL/API2/model_notes.inc index 6e638a3e2d..35f0bd8fe5 100644 --- a/APPL/API2/model_notes.inc +++ b/APPL/API2/model_notes.inc @@ -102,6 +102,8 @@ function model_notes(module) tabel.parent = "prj_scenario"; break; } + default: + api2.error(500, "Missing module parameter"); } this.table = tabel.naam; this.primary = tabel.parent + "_note_key";